Getting Rails production to run on port 80

你离开我真会死。 提交于 2019-12-06 10:50:48

I don't think this is how you have to start the server in production using Apache. Did you install apache-paassenger modules? and made changes in apache conf file?

First, the gem needs to be installed on the system:

gem install passenger 

Before the Apache module is compiled, two dependency packages need to be installed as well:

apt-get install curl-devel httpd-devel 

Use this command to start the apache installation: It will take some time

passenger-install-apache2-module

Passenger will display some content after Apache installs:

Follow it up and make changes in (/etc/httpd/conf/httpd.conf)

You will have to point to application public folder and restart the apache server follow with these sources closely.

https://www.digitalocean.com/community/tutorials/how-to-install-rails-apache-and-mysql-on-ubuntu-with-passenger

https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6

It helped when I did it for first time.

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