B
B
bobanuk2014-09-09 12:35:43
Nginx
bobanuk, 2014-09-09 12:35:43

How to start passenger correctly so that the application is available on mydomain.ru and not mydomain.ru:3000?

How to start passenger correctly so that the application is available on mydomain.ru and not mydomain.ru:3000 I did
everything according to the instructions after running rails server webrick -e production the application is available on mydomain.ru:3000 what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@mgyk, 2014-09-10
@bobanuk

rails server -p 3000 -e production
with this command you raise webrick built-in, not passenger from nginx
1) Check the paths, if you are deploying the capital country should be /home/deploy/myapp/current
2) Look in the nginx error.log and enable the passenger log https://www.phusionpassenger.com/documentation/Use...
3) The passenger monitors the update time of the tmp/restart.txt file, it is enough to touch tmp/restart.txt in order for the passenger to reread the application code

4
4ikist, 2014-09-09
@4ikist

-p port

B
bobanuk, 2014-09-11
@bobanuk

I didn't do it myself:
sudo service nginx restart
touch myapp/tmp/restart.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question