diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 97bd4a8c..ac616da9 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/server/migrator.ts b/server/migrator.ts index 4d2a2c6e..7d65a98b 100644 --- a/server/migrator.ts +++ b/server/migrator.ts @@ -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(`