File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v3
1616 - uses : superfly/flyctl-actions/setup-flyctl@master
17- - run : flyctl deploy --remote-only webserver
17+ - name : Build the image.
18+ run : flyctl deploy --remote-only --image-label ${{ github.sha }} --build-only --push webserver
1819 env :
1920 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
2021 NO_COLOR : 1
22+ - name : Update the machine's image.
23+ run : flyctl image update --image registry.fly.io/vlach-cookbook-staging:${{ github.sha }} -a vlach-cookbook-staging --yes
24+ env :
25+ FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
Original file line number Diff line number Diff line change 11.dockerignore
22.env *
33.gitignore
4+ .terraform *
45Dockerfile
56e2e
67fly.toml
8+ main.tf
79node_modules /
810playwright *
11+ terraform *
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import solidJs from "@astrojs/solid-js";
88export default defineConfig ( {
99 output : 'server' ,
1010 adapter : node ( {
11- mode : 'standalone '
11+ mode : 'middleware '
1212 } ) ,
1313 integrations : [ solidJs ( ) ]
1414} ) ;
Original file line number Diff line number Diff line change 11# fly.toml file generated for vlach-cookbook on 2022-10-08T14:51:25-07:00
22
33# Use `-a vlach-cookbook` to deploy the production app.
4+ # The staging app is actually configured using the following commands:
5+ #
6+ # fly ips allocate-v4 --shared
7+ # fly ips allocate-v6
8+ # fly machine run . --cpus 1 --size shared-cpu-1x --memory 256 --region sea \
9+ # --env HOST=:: --env PORT=8080 --env MAX_IDLE_SECONDS=600 --port 443:8080/tcp:tls:http
10+ #
11+ # And then see .github/workflows/staging.yml for how its image is updated.
412app = " vlach-cookbook-staging"
513kill_signal = " SIGINT"
614kill_timeout = 5
Original file line number Diff line number Diff line change 99 "private" : true ,
1010 "scripts" : {
1111 "dev" : " astro dev" ,
12- "start" : " node ./dist/ server/entry .mjs" ,
12+ "start" : " node ./server.mjs" ,
1313 "build" : " astro build" ,
1414 "preview" : " astro preview" ,
1515 "astro" : " astro"
1616 },
1717 "engines" : {
1818 "node" : " 18"
1919 },
20- "packageManager" : " pnpm@7.21.0 " ,
20+ "packageManager" : " pnpm@7.26.1 " ,
2121 "dependencies" : {
2222 "@astrojs/node" : " ^4.0.0" ,
2323 "@astrojs/solid-js" : " ^1.2.3" ,
2424 "@prisma/client" : " ^4.8.1" ,
2525 "astro" : " ^1.9.2" ,
26+ "debug" : " ^4.3.4" ,
2627 "dset" : " ^3.1.2" ,
28+ "express" : " ^4.18.2" ,
2729 "google-auth-library" : " ^8.7.0" ,
2830 "markdown-it" : " ^13.0.1" ,
2931 "prisma" : " ^4.8.1" ,
3032 "solid-js" : " ^1.6.9"
3133 },
3234 "devDependencies" : {
33- "@playwright/test" : " ^ 1.29.2" ,
35+ "@playwright/test" : " 1.29.2" ,
3436 "@types/markdown-it" : " ^12.2.3" ,
3537 "@types/node" : " ^18.11.18" ,
3638 "dotenv-cli" : " ^6.0.0"
You can’t perform that action at this time.
0 commit comments