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

August 30, 2018 1.6k views
Ruby on Rails Ubuntu 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.

    by Melissa Anderson
    ARCHIVED: DigitalOcean's Ruby on Rails One-click application provides a convenient way to get your Rails application running on an Ubuntu server. With Nginx, Unicorn, and Postgres all pre-installed, the One-click is a great base for hosting your app. In this tutorial, we'll show you how to create a Droplet, where to find the usernames and passwords, and how to restart the key services on the Droplet.
  • @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.

Be the first one to answer this question.