By james423295
Today I wanted to take a stab at getting a rails app deployed with dokku, so I followed the walkthrough found here (https://www.digitalocean.com/community/articles/how-to-use-the-dokku-one-click-digitalocean-image-to-run-a-ruby-on-rails-app)
When I try to run dokku postgresql:create app_name it advises me to update docker.
I update docker following the directions found here http://docs.docker.io/en/latest/installation/upgrading/
I then create the database.
Now when I try git push dokku master it just hangs…
Anyone run into issues with this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I ended up doing a manual install of Dokku on a fresh Ubuntu 13.04 to work around this. It’s actually quite easy and works without issue.
Can you point to a tutorial please? I’m having a ‘Your docker version is too old, please update it’ even after apt-get install upgrade…
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.