Skip to content

Commit

Permalink
Remove unneeded migration strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdale99 committed Nov 13, 2024
1 parent bf616d0 commit 7fd7ada
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 92 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ jobs:
- name: Set SST Config Secret
run: |
npx sst secret set DATABASE_URL ${{ secrets.DATABASE_URL_STAGING }} --stage staging
npx sst secret set NEXT_PUBLIC_SITE_URL ${{ secrets.NEXT_PUBLIC_SITE_URL_STAGING }} --stage staging
npx sst secret set NEXT_PUBLIC_URL ${{ secrets.NEXT_PUBLIC_URL_STAGING }} --stage staging
npx sst secret set COMMIT_SHA ${{ github.sha }} --stage staging
- name: Run staging DB Migrations
run: |
STAGE=staging npx tsx cli/migrator.ts
- name: Deploy with SST
run: pnpm run deploy:stage

Expand Down
51 changes: 0 additions & 51 deletions cli/migrator.ts

This file was deleted.

25 changes: 0 additions & 25 deletions lib/secrets.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "next dev",
"start": "next start",
"deploy": "sst deploy --stage production",
"migrate": "tsx cli/migrator.ts",
"deploy:stage": "sst deploy --stage staging",
"takeDown": "npx sst remove --stage production",
"generate": "npx drizzle-kit generate",
Expand Down Expand Up @@ -45,6 +44,7 @@
"tailwindcss": "3.4.1",
"tailwindcss-animate": "^1.0.7",
"typescript": "5.3.3",
"ws": "^8.18.0",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7fd7ada

Please sign in to comment.