If you faceing same as following issue.
Exception NameError in PhusionPassenger::Rack::ApplicationSpawner (uninitialized constant MongoMapper)
Please do the settings. It will really help you.
Also, check your Database Query and cusumption of Memroy on server.
---------------------------------------------
http {
..
PassengerMaxPoolSize 3
keepalive_timeout 120;
---------------------------------------------
Please let me know, if still you have an issue.
Tuesday, October 26, 2010
Monday, October 25, 2010
[RSOLVED] [Rails Crontab Not Running]`bin_path': can 't find executable rake for Cronjob not running
Hey Guys,
I have issue with some ruby script and rails, rake script not running as cronjob,
so you can use the following solution.
=============================================
[root@localhost ] vi /usr/bin/railscron
#! /bin/bash
cd /app/production/current/
PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin/
/usr/local/bin/rake user:details RAILS_ENV=production >> /tmp/test
echo "its running"
==============================================
* Set as Cronjob now:
* 10 * * * /usr/bin/railscron
Fixed.
If any query, Please let me know. I am here to solve your issue.
Yo.!
I have issue with some ruby script and rails, rake script not running as cronjob,
so you can use the following solution.
=============================================
[root@localhost ] vi /usr/bin/railscron
#! /bin/bash
cd /app/production/current/
PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin/
/usr/local/bin/rake user:details RAILS_ENV=production >> /tmp/test
echo "its running"
==============================================
* Set as Cronjob now:
* 10 * * * /usr/bin/railscron
Fixed.
If any query, Please let me know. I am here to solve your issue.
Yo.!
Tuesday, October 19, 2010
ActionController::RoutingError No route matches .html
Added extra .html to URL in rails.
If you have added following rewiterules in apache configuration Or added in your .htaccess in your public. Basically its required for the FastCGI. if you run fastCGI server then its need, but if you running Passenger
should be remove
---------------------------------------
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
----------------------------------------
So solution is please remove that from apache config Or remove .htaccess for the passenger only. njoy.!
If you have added following rewiterules in apache configuration Or added in your .htaccess in your public. Basically its required for the FastCGI. if you run fastCGI server then its need, but if you running Passenger
should be remove
---------------------------------------
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
----------------------------------------
So solution is please remove that from apache config Or remove .htaccess for the passenger only. njoy.!
Subscribe to:
Posts (Atom)