Modify entrypoint to run web
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luke Murphy 2020-11-06 12:24:55 +01:00
parent 541bc30dfc
commit 8482b3cece
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 9 additions and 7 deletions

View File

@ -28,18 +28,20 @@ load_vars() {
file_env "SMTP_PASSWORD"
}
reuse() {
re_use() {
if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
}
db_setup() {
echo "TODO: rake db:setup"
# rake db:setup
# TODO(decentral1se): manual steps for now
# db_setup() { bundle exec rake db:setup }
# db_migrate() { bundle exec rake db:migrate }
run_web(){
./proc-start web
}
reuse
re_use
load_vars
db_setup
exec "$@"
run_web