Reputation: 8730
Using docker repository to install rails app on digitalocean Ubuntu 18.
I have using that app official How to install FarmBot Web API on a Fresh Ubuntu 18.10 Machine
I have done all setup .env file, gems installation, db creation, migrations , assets precompile also.
Issue I face is that as per documentation to run app that is the command
sudo docker-compose up
but it not runs on production. How I can run in on production that when I hit ip address app runs
Upvotes: 0
Views: 82
Reputation: 185
What exactly do you mean by "it not runs on production"?
If you just want to keep it running even after closing your terminal you would need to run it with the -d
option like so:
sudo docker-compose up -d
If that is not what you are asking for please clarify.
The docker-compose docs may also be helpful.
Upvotes: 2