Skip to content

Commit

Permalink
feat: Update bashrc sourcing in deploy.yaml and use environment varia…
Browse files Browse the repository at this point in the history
…bles in migrator.ts
  • Loading branch information
OXeu committed Jun 6, 2024
1 parent 4bafd4a commit 1e69c17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install bun
run: |
curl -fsSL https://bun.sh/install | bash
source /root/.bashrc
source ~/.bashrc
- name: Clone Rin repository
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions server/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { $ } from "bun";
import stripIndent from 'strip-indent';
import { readdir } from "node:fs/promises";

const DB_NAME = 'rin'
const WORKER_NAME = 'rin-server'
const FRONTEND_URL = 'https://xeu.life'
const DB_NAME = process.env.DB_NAME ?? 'rin'
const WORKER_NAME = process.env.WORKER_NAME ?? 'rin-server'
const FRONTEND_URL = process.env.FRONTEND_URL ?? ""
const S3_FOLDER = 'images/'

Bun.write('wrangler.toml', stripIndent(`
Expand Down

0 comments on commit 1e69c17

Please sign in to comment.