Question

How to run rails applications on digitalocean using "rails s"

Posted August 30, 2018 2.3k views
Ruby on RailsUbuntu 16.04

Hello everyone,

My issue is that I created a droplet to develop Rails apps.
I used the one-click ruby droplet. And now I want to create more than the default rails apps in this droplet.

The issue here is that it comes installed with nginx/unicorn .. And they’re always on with path of default rails project in their config files.

Now let’s assume I created another rails app(file) and I want to run it using “rails s” instead of default rails app that is created by the droplet. How can I do it?

Note: I don’t want to change the file path in configs each time I decide to try another app

PS: I tried stopping the service of unicorn/nginx one at a time and both of them in the same time to use “rail s” to run the app .. But it didn’t work .. Web pages were not loading

I know it might be a question of a rookie. But I’m kinda new to these stuff and I’d appreciate it if anyone could help me.

3 comments
  • This seems like a good place to start. You’ll find at the end of the tutorial some pretty usefull information on how to secure the droplet and a link to some other tutorials on the subject.

  • @X40C thanks for your efforts .. But that doesn’t help me .. I went through this guide and relative ones below .. Then when I couldn’t find the needed answer, I asked my question in here :/

  • Sorry to hear that, maybe someone with more knowledge on the matter can step in.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!