-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update environment variable naming from POSTGRES_URL to DATABASE_URL,…
… remove bun.lockb file, update pnpm-lock.yaml for @types/bun and bun-types versions, and add GitHub Actions workflow for Fly deployment. Refactor database initialization to use DATABASE_URL.
- Loading branch information
1 parent
fa6e907
commit 89c1347
Showing
8 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
# Database | ||
POSTGRES_URL=your-postgres-url | ||
DATABASE_URL=your-postgres-url | ||
POSTGRES_POOL_MIN=2 | ||
POSTGRES_POOL_MAX=10 | ||
|
||
|
||
# Model Provider (choose one) | ||
# Model Provider (OPENAI used for embedding, ANTHROPIC used for chat) | ||
OPENAI_API_KEY=sk-* | ||
ANTHROPIC_API_KEY=your-anthropic-api-key | ||
|
||
# Discord (if using) | ||
DISCORD_APPLICATION_ID=your-application-id | ||
DISCORD_API_TOKEN=your-bot-token | ||
|
||
# Use OpenAI embedding model | ||
USE_OPENAI_EMBEDDING=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ | ||
|
||
name: Fly Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
name: Deploy app | ||
runs-on: ubuntu-latest | ||
concurrency: deploy-group # optional: ensure only one action runs at a time | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: superfly/flyctl-actions/setup-flyctl@master | ||
- run: flyctl deploy --remote-only | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters