diff options
| author | Max Isom <[email protected]> | 2022-02-05 16:16:17 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-05 16:16:17 -0600 |
| commit | 56a469a999774c8b8683adeb59b243fdf85b14c9 (patch) | |
| tree | 2e11f067d6e4caae9301986a0b432825cc65839e /src/scripts | |
| parent | e883275d831f3d9bf3a57bd91e0deeeaf4951242 (diff) | |
| download | muse-56a469a999774c8b8683adeb59b243fdf85b14c9.tar.xz muse-56a469a999774c8b8683adeb59b243fdf85b14c9.zip | |
Migrate to slash commands (#431)
Co-authored-by: Federico fuji97 Rapetti <[email protected]>
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/run-with-database-url.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scripts/run-with-database-url.ts b/src/scripts/run-with-database-url.ts index b7ae3a7..e4ab39a 100644 --- a/src/scripts/run-with-database-url.ts +++ b/src/scripts/run-with-database-url.ts @@ -2,12 +2,14 @@ import {DATA_DIR} from '../services/config.js'; import createDatabaseUrl from '../utils/create-database-url.js'; import {execa} from 'execa'; -process.env.DATABASE_URL = createDatabaseUrl(DATA_DIR); - (async () => { await execa(process.argv[2], process.argv.slice(3), { preferLocal: true, stderr: process.stderr, stdout: process.stdout, + stdin: process.stdin, + env: { + DATABASE_URL: createDatabaseUrl(DATA_DIR), + }, }); })(); |
