https://github.com/zeabur/deno-fresh-template
A simple Deno app with Fresh framework deployed on Zeabur.
https://github.com/zeabur/deno-fresh-template
cicd cloud deno deploy deployment fresh zeabur
Last synced: 8 months ago
JSON representation
A simple Deno app with Fresh framework deployed on Zeabur.
- Host: GitHub
- URL: https://github.com/zeabur/deno-fresh-template
- Owner: zeabur
- Created: 2023-02-05T15:59:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T08:02:06.000Z (about 2 years ago)
- Last Synced: 2025-01-04T19:29:36.521Z (10 months ago)
- Topics: cicd, cloud, deno, deploy, deployment, fresh, zeabur
- Language: TypeScript
- Homepage: https://deno-template-fresh.zeabur.app/
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deno-fresh-template
[](https://zeabur.com/templates/WK9JCJ)
- Follow the commands to bootstrap your [Deno](https://deno.land/) project with [Fresh](https://fresh.deno.dev/) framework:
``` shell
deno run -A -r https://fresh.deno.dev my-project
cd my-project
deno task start
```- In `./main.ts`, add `port: Deno.env.get("PORT")` to the `start` function and listen to the custom port given the `.env` file
```typescript
start(manifest, { plugins: [twindPlugin(twindConfig)], port: Deno.env.get("PORT")}, );
```- To run locally, copy `.env.defaults` to a new file `.env`, and modify `.env` by assigning the port that you would like to run your application.
```shell
cp .env.defaults .env
``````shell
# in .env
PORT=
```- **Do not** add `fresh.gen.ts` to your `.gitignore` file.