Skip to content

Commit

Permalink
pwpush container: Update link in entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Oct 18, 2023
1 parent 00443d7 commit 764c0ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion containers/docker/pwpush/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 764c0ef

Please sign in to comment.