Report this

What is the reason for this report?

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

Posted on August 30, 2018
Jsom

By Jsom

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.