Deploying Ruby on Rails Application
If you are using Rails version 2.3.4 then Check the New Rails Application deployment process. For earlier version please continue following the steps given below. Remember to freeze your application with the Rails version, as the server is using the latest version of Rail.
To deploy your newly build rails application on the Nirvaat.com hosting account, first freeze all the gems and plug-ins that you used. It would be better if you could freeze the rails gem also, as it will make the site immune to rails upgrade on the web server and would always use application’s local copy.
Now follow below given steps to make your application working on the hosting server:
1. Using FTP software of your choice, upload the complete application on the web server.
2. Open a SSH session and go at the root of your personal directory (place where you can see the directory public_html).
3. Create symbolic link to map your app name on the public folder of your application
ln -s /home/username/path_to_your_app/public public_html/your_app_name
4. We have to add following lines in the .htaccess file, if they are not already there. It will tell Apache to follow the symbolic link that we just created.
vi public_html/.htaccess
Add these lines:
Options +FollowSymLinks +ExecCGI
RewriteEngine On
Now, you should be all right and ready to show your work to the rest of the world! You will be able to access the index page by typing:
http://www.your_domain.com/your_app_name/
Search the site
Random Testimonial
- ~ Elance ID – catchlight
"This was a seemingly small job, but a very important one and one that needed to be done right. A certain level of knoowledge is required for this type of task and nirvaat carried it out beautyifully. Nice work and I'd reccommend this provider to anyone working with" - Read more testimonials »
What's the little bird saying?
- @pavanagrawal If computers will start asking questions then who will answer it!!!!! we have to creat a human version of google! in reply to pavanagrawal 1 week ago
- Turn a USB Flash Drive Into Extra Virtual RAM [USB Drive] http://bit.ly/cb9fOT 2010-06-28
- Is Entrepreneurship Just About the Exit? http://bit.ly/99oan9 2010-06-12
- More updates...
Posting tweet...
