I am using apache passenger to deploy rails application.
I have followed each and every step clearly and everything works fine. No error message in deployment.
I placed the application at this particular location var/www/myapplication.
This resolved the error "Symbolic link not allowed or link target not accessible". I will put all the steps I took to resolve this issue.
In addition to this i'll also blog on how to resolve errors involved with first time deployment of rails 3.1 to ec2. here ->
http://recipe4developer.wordpress.com/2011/11/19/correcting-errors-in-first-time-rails-3-1-deployment-to-ec2/
Is there a reason you're not using Heroku? You get EC2 with very easy deployment.
Make sure that your vhost lives somewhere in /etc/apache2/sites-available
, and then make sure to add it to apache, either by using the a2ensite
command, or by manually symlinking /etc/apache2/sites-enabled/your_vhost_name_here
to whatever you called the site.
Possible commands to enable the site (use either one):
sudo a2ensite your_vhost_name
sudo ln -s /etc/apache2/sites-available/your_vhost_name /etc/apache2/sites-enabled
After you've done this, make sure to reload apache, by running the following command:
sudo service apache2 restart