Deployed rails site on ec2 using capistrano, but it doesn't show up on the browser, here is the site -> http://passionate4.net/

前端 未结 3 1111
心在旅途
心在旅途 2020-12-22 11:12

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.

相关标签:
3条回答
  • 2020-12-22 11:18

    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/

    0 讨论(0)
  • 2020-12-22 11:27

    Is there a reason you're not using Heroku? You get EC2 with very easy deployment.

    0 讨论(0)
  • 2020-12-22 11:38

    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
    
    0 讨论(0)
提交回复
热议问题