& so it begins
This commit is contained in:
7
scripts/migrate.sh
Executable file
7
scripts/migrate.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
echo "🔄 Migrating Primary DB"
|
||||
|
||||
cd packages/db
|
||||
|
||||
bun run db:migrate
|
||||
|
||||
cd ../../
|
||||
15
scripts/populate.env.sh
Executable file
15
scripts/populate.env.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# copy over the environment variables from the base /.env file to all other apps & packages in apps/* and packages/*
|
||||
|
||||
for dir in apps/*; do
|
||||
if [ -d "$dir" ]; then
|
||||
cp .env $dir/.env
|
||||
fi
|
||||
done
|
||||
|
||||
for dir in packages/*; do
|
||||
if [ -d "$dir" ]; then
|
||||
cp .env $dir/.env
|
||||
fi
|
||||
done
|
||||
14
scripts/prod.start.sh
Executable file
14
scripts/prod.start.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
APP_PATH=$1
|
||||
|
||||
if [ -z "$APP_PATH" ]; then
|
||||
echo "Usage: prod.start.sh <app path>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting $APP_PATH"
|
||||
|
||||
cd $APP_PATH
|
||||
|
||||
bun run prod
|
||||
Reference in New Issue
Block a user