diff --git a/containers/docker/pwpush/entrypoint.sh b/containers/docker/pwpush/entrypoint.sh index 1f15ffd236ff..b60d54b48857 100755 --- a/containers/docker/pwpush/entrypoint.sh +++ b/containers/docker/pwpush/entrypoint.sh @@ -3,14 +3,16 @@ set -e export RAILS_ENV=production +echo "" if [ -z "$DATABASE_URL" ] then echo "DATABASE_URL not specified. Assuming ephemeral backend. Database may be lost on container restart." - echo "To set a database backend refer to https://github.com/pglombardo/PasswordPusher/wiki/Switch-to-Another-Backend-Database#environment-variable" + echo "To set a database backend refer to https://github.com/pglombardo/PasswordPusher/wiki/How-to-migrate-to-the-Universal-Container#how-does-it-work" export DATABASE_URL=sqlite3:db/db.sqlite3 else echo "According to DATABASE_URL database backend is set to $(echo $DATABASE_URL|cut -d ":" -f 1):..." fi +echo "" echo "Password Pusher: migrating database to latest..." bundle exec rake db:migrate