You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/run.sh
+7-7
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ set -e
4
4
# Set the directory of the database in a variable
5
5
DB_PATH=/data/users.$MODE.sqlite
6
6
7
-
if [ $MODE!='development' ];then
7
+
if [ $MODE!="development" ];then
8
8
# This should be before running migrations otherwise it results in empty database after `rm -rf ./data`
9
9
# Restore the database if it does not already exist.
10
10
if [ -f$DB_PATH ];then
@@ -24,10 +24,10 @@ MIGRATE_DATABASE=false
24
24
FIRST_TIME_MIGRATION="FIRST_TIME_MIGRATION_$MODE"
25
25
if [[ !-e /data/$FIRST_TIME_MIGRATION ]] || [[ $MIGRATE_DATABASE=true ]];then
26
26
# Place your script that you only want to run on first startup.
27
-
echo'Initialize database first time only'
27
+
echo"Initialize database first time only"
28
28
touch /data/$FIRST_TIME_MIGRATION
29
29
30
-
if [ $MODE!='development' ];then
30
+
if [ $MODE!="development" ];then
31
31
# Only install dependencies for drizzle migration. Those are not bundled via `next build` as its optimized to only install dependencies that are used in next.js app
32
32
echo"Installing $MODE dependencies"
33
33
cd scripts
@@ -37,12 +37,12 @@ if [[ ! -e /data/$FIRST_TIME_MIGRATION ]] || [[ $MIGRATE_DATABASE = true ]]; the
0 commit comments