mod_rails
- Bernee
- Posts: 1
- Starts: 1
- Wiki Edits: 0
How do I setup my rails application with passenger?
- William
- Posts: 1052
- Starts: 32
- Wiki Edits: 56
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.
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
- Bernee
- Posts: 1
- Starts: 1
- Wiki Edits: 0
Thanks. That worked great.
And for restarting I just SSH and "touch app/tmp/restart.txt" ?
And for restarting I just SSH and "touch app/tmp/restart.txt" ?
2008-04-17 09:27 AM
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
Yes. Exactly, that should do the job for you. Let us know if you've any questions.