Skip to content

Commit b7fd89a

Browse files
committed
deploy to fly
closes #29
1 parent 6fc6660 commit b7fd89a

6 files changed

Lines changed: 57 additions & 1 deletion

File tree

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# flyctl launch added from .gitignore
2+
# dotenv environment variable files
3+
**/.env
4+
**/.env.development.local
5+
**/.env.test.local
6+
**/.env.production.local
7+
**/.env.local
8+
9+
# Fresh build directory
10+
**/_fresh
11+
12+
# Needed because of Tailwind (Fresh 1.6+)
13+
**/node_modules
14+
15+
# flyctl launch added from node_modules/.deno/tailwindcss@3.4.1/node_modules/tailwindcss/stubs/.gitignore
16+
!node_modules/.deno/tailwindcss@3.4.1/node_modules/tailwindcss/stubs/**/*
17+
fly.toml

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotenv_if_exists .env

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM denoland/deno:alpine
2+
3+
USER deno
4+
WORKDIR /app
5+
6+
COPY --chown=deno:deno . .
7+
8+
ENV DENO_DEPLOYMENT="docker"
9+
10+
RUN ["deno", "install"]
11+
12+
CMD ["./start.sh"]

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"exclude": ["**/_fresh/*"],
1212
"nodeModulesDir": "auto",
1313
"imports": {
14-
"$fresh/": "https://deno.land/x/fresh@1.7.2/",
14+
"$fresh/": "https://deno.land/x/fresh@1.7.3/",
1515
"$std/": "https://deno.land/std@0.193.0/",
1616
"@deno/gfm": "jsr:@deno/gfm@^0.9.0",
1717
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",

fly.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# fly.toml app configuration file generated for devict-website on 2025-06-29T07:38:55-05:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
5+
6+
app = 'devict-website'
7+
primary_region = 'dfw'
8+
9+
[build]
10+
11+
[http_service]
12+
internal_port = 8000
13+
force_https = true
14+
auto_stop_machines = 'suspend'
15+
auto_start_machines = true
16+
min_machines_running = 0
17+
processes = ['app']
18+
19+
[[vm]]
20+
memory = '1gb'
21+
cpu_kind = 'shared'
22+
cpus = 1

start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
deno task build
4+
deno run -A main.ts

0 commit comments

Comments
 (0)