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

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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer