I one click installed ruby on rails. Now what?

November 29, 2018 628 views
Ruby on Rails One-Click Install Apps Ubuntu

I created a digital ocean droplet, and one-click installed ruby-on-rails. I SSHed into the server, and found that I have one ruby on rails project called example. Ok… It seems that this application is what’s running when I type in the IP address of the droplet into google. But, I want to upload my own website, not just keep an example application obviously…

So I git cloned a repository from bitbucket which contained a finished ruby on rails website. I tried running rails db:create and it failed.. apparently, there was a lot of stuff not installed yet… which is weird because I thought that one-click install handled all of that. I tried running bundle install and I had to install bundler of course.... Once I installed bundler and ran bundle install, the installation failed once it got to the nokogiri gem. I also saw that when I ran bundle install on the example project, the same thing occurred. The installation failed when it reached nokogiri, but the example app still ran in the browser without errors… huh.

So I deleted the example project, leaving my rails website as the only project in the rails directory on my droplet and when I refreshed the page, I got a big error saying that the example application was missing… What??? It always looks for the example app??? Whatever… I renamed my website directory to example and refreshed the page and now I’m getting this error:

Errno::EACCES Permission denied @ dir_s_mkdir - /home/rails/example/tmp/cache

So now I’m super confused… I tried looking online for some documentation, but all I can find is how to install Ruby on Rails on a droplet… So, I don’t know what to do.

Any help is very appreciated. If you have some articles or documentation links explaining how to actually deploy a ruby application to a droplet which had ruby on rails installed by default, I’d love to see them. Thank you very much! :)

1 Answer

The documentation for the one-click app is as close to useless as they come. I ran into the same issues the last time I tried using the one-click approach. Hopefully someone will respond with an answer for you, and will update the docs.

Have another answer? Share your knowledge.