File tree Expand file tree Collapse file tree 5 files changed +4473
-2715
lines changed Expand file tree Collapse file tree 5 files changed +4473
-2715
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ npm-debug.log *
3+ yarn-debug.log *
4+ yarn-error.log *
5+ .pnpm-debug.log *
6+ pnpm-lock.yaml
7+
8+ # Runtime data
9+ pids
10+ * .pid
11+ * .seed
12+ * .pid.lock
13+
14+ # Coverage directory used by tools like istanbul
15+ coverage
16+ * .lcov
17+
18+ # nyc test coverage
19+ .nyc_output
20+
21+ # Dependency directories
22+ node_modules /
23+
24+ # Optional npm cache directory
25+ .npm
26+
27+ # Optional eslint cache
28+ .eslintcache
29+
30+ # Output of 'npm pack'
31+ * .tgz
32+
33+ # Yarn Integrity file
34+ .yarn-integrity
35+
36+ # dotenv environment variables file
37+ .env
38+ .env.test
39+ .env.production
40+ .env.local
41+
42+ # Stores VSCode versions used for testing VSCode extensions
43+ .vscode-test
44+
45+ # yarn v2
46+ .yarn /cache
47+ .yarn /unplugged
48+ .yarn /build-state.yml
49+ .yarn /install-state.gz
50+ .pnp. *
51+
52+ # macOS
53+ .DS_Store
54+
55+ # Git
56+ .git
57+ .gitignore
58+
59+ # IDE
60+ .vscode
61+ .idea
62+
63+ # Build output
64+ dist
65+ build
66+
67+ # Logs
68+ logs
69+ * .log
70+
71+ # Docker
72+ Dockerfile
73+ .dockerignore
Original file line number Diff line number Diff line change 1- FROM node:12 -alpine
1+ FROM node:18 -alpine
22
33RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
44WORKDIR /home/node/app
55COPY package*.json ./
66USER node
77RUN npm install
88COPY --chown=node:node . .
9+
10+ # Set the PORT environment variable for fly.io
11+ ENV PORT=1234
912EXPOSE 1234
13+
1014CMD [ "npm" , "start" ]
Original file line number Diff line number Diff line change @@ -14,32 +14,13 @@ kill_timeout = '5s'
1414[build ]
1515
1616[http_service ]
17- internal_port = 3000
17+ internal_port = 1234
1818 force_https = true
1919 auto_stop_machines = ' stop'
2020 auto_start_machines = true
2121 min_machines_running = 0
2222 processes = [' app' ]
2323
24- [[services ]]
25- protocol = ' tcp'
26- internal_port = 8080
27- processes = [' app' ]
28-
29- [[services .ports ]]
30- port = 80
31- handlers = [' http' ]
32- force_https = true
33-
34- [[services .ports ]]
35- port = 443
36- handlers = [' tls' , ' http' ]
37-
38- [[services .tcp_checks ]]
39- interval = ' 15s'
40- timeout = ' 2s'
41- grace_period = ' 1s'
42-
4324[[vm ]]
4425 size = ' shared-cpu-1x'
4526 memory = ' 512mb'
You can’t perform that action at this time.
0 commit comments