Skip to content

Commit

Permalink
modify start cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pell authored and David Pell committed Jul 30, 2024
1 parent 247c4df commit 26e03ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion railway.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dockerfilePath": "./Dockerfile"
},
"deploy": {
"startCommand": "bun --hot --watch ./src/index.ts",
"startCommand": "bun database:up && bun --hot --watch ./src/index.ts",
"restartPolicyType": "ALWAYS",
"restartPolicyMaxRetries": 4
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/setup-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ functions_dir="db/functions"
# Create the migrations directory if it does not exist
mkdir -p "$migrations_dir"

# Create the functions directory if it does not exist
mkdir -p "$functions_dir"

# clean up db/migrations folder
rm -rf ${migrations_dir}/*

Expand Down

0 comments on commit 26e03ec

Please sign in to comment.