开发者

Apache server restart with Ruby on Rails

开发者 https://www.devze.com 2023-01-05 23:27 出处:网络
I have just restarted my apache server which is running ruby on rails. Now it isn\'t serving any web pages because I think that some of the Rails related services are not working.

I have just restarted my apache server which is running ruby on rails. Now it isn't serving any web pages because I think that some of the Rails related services are not working.

Does anyone know how to sort this out? Any help greatly appreciated.

More info: error says "Ruby on Rails application could not be started" with Phusion Passenger on the front page.

The application was working before the restart and I have changed some javascript开发者_C百科 on one of the ruby generated html pages. No major config changes.


Are you sure you have it setup properly? If it only started failing after a restart, chances are you made a bad change to your config. Here's a sample configuration (/etc/apache2/sites-available/site):

<VirtualHost *:80>
  ServerName www.site.com
  DocumentRoot /var/rails/site/public
  <Directory /var/rails/site/public>                                                                                                       
     AllowOverride all
     Options -MultiViews
  </Directory>
 </VirtualHost>

Make sure apache has access to your app's folder. Usually, apache runs as www-data.


Guys - thanks for all of the feedback. You don't need to restart apache Web server , you just need to do following steps to restart passenger

cd /home/veriqual/r2/ touch tmp/restart.txt

Hope this helps people.

0

精彩评论

暂无评论...
验证码 换一张
取 消