How to Stop Phusion Passenger

匆匆过客 提交于 2019-12-04 21:57:27

You can't stop it without editing the Apache config and taking out or commenting out the VirtualHost block for the Rails application and then restarting the Apache server.

Do you want to stop it for good? Edit the apache conf file, change the DocumentRoot of the virtual host to not point to a Rails installation, then apachectl graceful.

If you want to fully start and stop your Rails app via Capistrano, you can write some simple cap tasks that basically do what I outlined above: log in, edit the conf file, and restart apache.

I did:

sudo a2dissite

Then I wrote the name of the Rails site and hit enter. After that, I reloaded Apache:

sudo service apache2 reload
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!