Note that there are some explanatory texts on larger screens.

plurals
  1. PODeployed rails site on ec2 using capistrano, but it doesn't show up on the browser, here is the site -> http://passionate4.net/
    primarykey
    data
    text
    <p>I am using apache passenger to deploy rails application.</p> <p>I have followed each and every step clearly and everything works fine. No error message in deployment.</p> <p>But the site doesn't show up on browser.</p> <p>Here are the files </p> <pre><code>$ sudo cat /etc/apache2/sites-available/capi_app &lt;VirtualHost *:80&gt; ServerName www.passionate4.net DocumentRoot /var/www/apps/capi_app/public RailsEnv production &lt;Directory /var/www/apps/capi_app/public&gt; Allow from all Options -MultiViews &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <hr> <p>I also tried to change </p> <p>$ sudo cat /etc/apache2/sites-available/capi_app</p> <pre><code>&lt;VirtualHost *:80&gt; ServerName www.passionate4.net DocumentRoot /var/www/apps/capi_app/current/public RailsEnv production &lt;Directory /var/www/apps/capi_app/current/public&gt; Allow from all Options -MultiViews &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>--> With this, when i restart apache, I don't get error (/ / / public) doesn't exist, but site still doesn't show up.</p> <p>@Martin </p> <p>$ sudo cat /etc/apache2/sites-enabled/capi_app </p> <pre><code>&lt;VirtualHost *:80&gt; ServerName www.passionate4.net DocumentRoot /var/www/apps/capi_app/current/public RailsEnv production &lt;Directory /var/www/apps/capi_app/current/public&gt; Allow from all Options -MultiViews &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>----------- deploy.rb file -------------</p> <pre><code>require 'bundler/capistrano' #using RVM! $:.unshift("#{ENV["HOME"]}/.rvm/lib") require "rvm/capistrano" set :rvm_type, :user set :application, "capi_app" set :deploy_to, "/var/www/#{application}" role :web, "50.18.155.154" # Your HTTP server, Apache/etc role :app, "50.18.155.154" # This may be the same as your `Web` server role :db, "50.18.155.154", :primary =&gt; true # This is where Rails migrations will run default_run_options[:pty] = true set :repository, "git@github.com:jaipratik/capi_app.git" set :scm, :git set :branch, "master" set :user, "ubuntu" #if error use whats shown in podcast set :use_sudo, false set :admin_runner, "ubuntu" set :rails_env, 'production' #&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; NEW #set :use_sudo, false #if error delete this # if you're still using the script/reaper helper you will need # these http://github.com/rails/irs_process_scripts # If you are using Passenger mod_rails uncomment this: namespace :deploy do task :start do ; end task :stop do ; end task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end end </code></pre> <hr> <p><b>ubuntu@ip-10-166-185-18:~$ ls -l /var/www/apps/capi_app </b></p> <p>total 8</p> <p>lrwxrwxrwx 1 ubuntu ubuntu 46 2011-11-17 19:04 current -> /var/www/</p> <p>apps/capi_app/releases/20111117190420</p> <p>drwx-w---- 5 ubuntu ubuntu 4096 2011-11-17 19:04 releases</p> <p>drwx-w---- 6 ubuntu ubuntu 4096 2011-11-17 09:48 shared</p> <p>ubuntu@ip-10-166-185-18:~$</p> <hr>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload