By dotmacintosh
HI there!
So I finally found a way to setup my Rails App with Dokku. I even got to perform a rake db:migrate on my app, called “www”.
Now I am missing one last step. I access my droplet IP address and I can’t see my website running. I don’t know if it isn’t running, I haven’t set the settings for dokku and web access right (probably didn’t), or what else.
This is what my Procfile looks like:
web: bundle exec rails server -p 80
Do I have to run a command to make that start? Is it performed automatically?
If the server boots automatically, then how do I point MY-IP-ADDRESS:80 to the “www” app? That is probably where the issue is otherwise.
Thank you!
P.S: I see “Unicorn” mentioned a lot. Is that a requirement to make this work?
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!
This question was answered by @clarkbw:
I believe you need to replace the 80 with $PORT so nginx can accept connections and route to the rails app on the port it is assigned to.
Here’s what my Procfile looks like for using unicorn:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
This question was answered by @clarkbw:
I believe you need to replace the 80 with $PORT so nginx can accept connections and route to the rails app on the port it is assigned to.
Here’s what my Procfile looks like for using unicorn:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
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.