chore: bun l
This commit is contained in:
2
bun.lock
2
bun.lock
@@ -101,7 +101,7 @@
|
||||
},
|
||||
"packages/autumn-js": {
|
||||
"name": "autumn-js",
|
||||
"version": "1.0.0-beta.9",
|
||||
"version": "1.0.0-beta.10",
|
||||
"dependencies": {
|
||||
"query-string": "^9.2.2",
|
||||
"rou3": "^0.6.1",
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
"dx": "bun scripts/dx.ts",
|
||||
"d:test": "lsof -ti:8080 -ti:3000 | xargs kill -9 2>/dev/null || true; ENV_FILE=.env infisical run --env=test -- bun scripts/dev.ts",
|
||||
"p": "ENV_FILE=.env.prod infisical run --env=prod -- bun scripts/dev.ts",
|
||||
"l": "bash ./scripts/dev-local.sh",
|
||||
"setup": "node scripts/setup/setup.js",
|
||||
"setup:test": "infisical run --env=dev -- bun scripts/setup/setup-test.ts",
|
||||
"migrate-functions": "infisical run --env=dev -- bun scripts/migrations/migrate-functions.ts",
|
||||
|
||||
17
scripts/dev-local.sh
Normal file
17
scripts/dev-local.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
database_url="${LOCAL_DATABASE_URL:-postgresql://postgres:postgres@localhost:5432/autumn}"
|
||||
cache_url="${LOCAL_CACHE_URL:-redis://localhost:6379}"
|
||||
|
||||
echo "dev-local: overriding Infisical DATABASE_URL/CACHE_URL with local values and disabling CACHE_CERT"
|
||||
|
||||
exec infisical run --env=prod -- env \
|
||||
ENV_FILE=.env.prod \
|
||||
NODE_ENV=development \
|
||||
DATABASE_URL="${database_url}" \
|
||||
CACHE_URL="${cache_url}" \
|
||||
CACHE_URL_US_EAST="${cache_url}" \
|
||||
CACHE_CERT="" \
|
||||
REDIS_URL="${cache_url}" \
|
||||
bun scripts/dev.ts "$@"
|
||||
Reference in New Issue
Block a user