Welcome Guest | Login

mod_rails

How do I setup my rails application with passenger?

2008-04-16 07:12 PM

Assuming you want it setup where ~/public_html is your DocumentRoot (this is the default for cPanel accounts' main domain) then upload your app to ~/ and symlink app/public to ~/public_html.  Make sure your database.yml is configured correctly and you've run any necessary rake tasks - e.g. 'rake db:migrate RAILS_ENV=production'.  

Then contact support with your domain name and have them change your vhost accordingly for mod_rails.  That's it.  

2008-04-16 07:35 PM

Thanks. That worked great.
And for restarting I just SSH and "touch app/tmp/restart.txt" ?

2008-04-17 09:27 AM

Yes. Exactly, that should do the job for you. Let us know if you've any questions.

2008-04-17 10:06 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.