D
D
Dauren S2015-11-22 09:31:37
Ruby on Rails
Dauren S, 2015-11-22 09:31:37

Ruby on Rails launch?

In general, I installed ruby ​​on rails.
But there are 2 problems: the first one starts only at the address myip:3000
How to remove 3000 from the address.
2 problem.
When I go to my project cd /web/myhost/www/testapp , then I do the command
rails server --binding=server_public_IP
Then if I exit the terminal or do Ctrl+c
, the ruby ​​server is cut down and my site is not visible.
How to fix these problems

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OnYourLips, 2015-11-22
@OnYourLips

You need to use puma.
https://www.digitalocean.com/community/tutorials/h...

D
Dima, 2015-11-22
@MAXOPKA

rails server --binding=server_public_IP -p 80 -d
Only the port must be free. Otherwise it won't start.

V
voe, 2015-11-23
@voe

If you want the site to work anywhere else except on the developer's machine, you need to make the so-called deploy "transfer the application" to the production / test environment.
Puma as the easiest option will help you with this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question