Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions web/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ When Workers Builds can't run, `npm run deploy` does the same as a build: it
applies the D1 migrations, then deploys. Code that expects a migration fails on
every page until that migration has run.

The footer shows the deployed commit only when the working tree is clean:
with uncommitted changes there is no commit to link to. A bare
`npx wrangler deploy` shows no version.

## Rolling back

- Code: `npx wrangler rollback` (or pick a version under Workers → Deployments).
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"db:migrate:local": "wrangler d1 migrations apply nodebox-forum --local",
"db:migrate:remote": "wrangler d1 migrations apply nodebox-forum --remote",
"db:seed:local": "wrangler d1 execute nodebox-forum --local --file seed/dev.sql",
"deploy": "npm run build:client && npm run db:migrate:remote && wrangler deploy",
"deploy": "npm run build:client && npm run db:migrate:remote && wrangler deploy --var GIT_COMMIT:$(git diff --quiet HEAD && git rev-parse HEAD || echo none)",
"secrets": "sh scripts/put-secrets.sh",
"ci:build": "npm run typecheck && npm test && npm run build:client",
"ci:deploy": "wrangler d1 migrations apply nodebox-forum --remote && wrangler deploy --var GIT_COMMIT:${WORKERS_CI_COMMIT_SHA:-none}",
Expand Down
Loading