How to change the project that comes by default in the image One Click app for Ruby On Rails DigitalOcean

0

I need to deploy my own application on a DigitalOcean server, I have a droplet with the One Click app image for Ruby On Rails and it has an empty running application called rails_project by default.

I need to know how to change the configuration or what to change in the configuration to start using my own application cloned from my repository.

I've tried several things, like modifying the /etc/unicorn.conf and / etc / nginx / sites-enabled / rails files but I'm still getting error 502. I do not know what to do anymore, I need help.

    
asked by Jose Rafael Camacaro Barraez 12.07.2018 в 06:23
source

1 answer

1

Good morning

When accessing via ssh, there is a command sudo -i -u rails (you change to user rails) in the directory of that user, there is the "example" test app

with git you can download your project to that folder, then you have to configure ngnix to point to that project.

I recommend that you read the digital ocean documentation. link

    
answered by 27.12.2018 в 11:50