Question
Dokku hanging after Docker update
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×I had the same problem and found a solution.
When I ran dokku postgresql:create app_name
, I got the “please update” notice, but actually when I looked in docker containers, the postgresql/app_name
got created. Dokku just didn’t see it as its own.
So I went nano /home/dokku/app_name/ENV
and set my DATABASE_URL
environment variable to
export DATABASE_URL="$PRODUCTION_ADAPTER://$PRODUCTION_USERNAME:$PRODUCTION_PASSWORD@$PRODUCTION_HOST:$PRODUCTION_PORT/$PRODUCTION_DB?encoding=utf-8"
according to link.
Then when I pushed the app again to dokku, it got the database from the ENV and everything worked smoothly.