Set up for internal deployment

This commit is contained in:
Kevin McConnell
2024-09-30 16:12:32 +01:00
parent d38bab9664
commit e009874767
7 changed files with 115 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash -e
# If running the rails server then create or migrate existing database
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
if [ "${1}" == "./bin/thrust" ] && [ "${2}" == "./bin/rails" ] && [ "${3}" == "server" ]; then
./bin/rails db:prepare
fi