Topic: Capistrano: deploys app without errors but browser can't open website

I have a rails application that I want to deploy with apache, passenger and capistrano.

The application is in `/var/www/myapp/`.

In my `http.conf` file, I added this block:

    <VirtualHost *:80>
      ServerName myapp.mydomain.co.uk
      DocumentRoot /var/www/myapp/current/public
      <Directory /var/www/myapp/public>
        Order allow,deny
        Allow from all
      </Directory>
    </VirtualHost>

My `/etc/hosts` file conatins 4 lines. The first 3 lines were already there and I added the 4th line for my rails application.

    127.0.0.1               localhost.localdomain localhost
    ::1             localhost6.localdomain6 localhost6
    130.88.111.33           mydomain.ac.uk ngrl
    127.0.0.1               myapp.mydomain.co.uk

My `deploy.rb` file looks like this:

    set :user, 'me'
    set :domain, 'mydomain.co.uk'
    set :application, 'myapp'
   
    set :repository, "me@mydomain.co.uk:git/myapp.git"
    set :deploy_to, "/var/www/myapp"
    set :normalize_asset_timestamps, false
   
    role :app, domain
    role :web, domain
    role :db, domain, :primary => true
   
    default_run_options[:pty] = true
   
    set :deploy_via, :remote_cache
    set :scm, 'git'
    set :branch, 'master'
    set :scm_verbose, true
    set :use_sudo, false
   
    namespace :deploy do
      desc "cause Passenger to initiate a restart"
      task :restart do
        run "touch #{File.join(current_path, 'tmp','restart.txt')}"
      end
   
      desc "reload the database with seed data"
      task :seed do
       run "cd #{current_path}; rake db:seed RAILS_ENV=production"
      end
    end
   
    after "deploy:update_code", :bundle_install
    desc "install the necessary prereqisites"
    task :bundle_install, :roles => :app do
      run "cd #{release_path} && bundle install"
    end



I ran `cap deploy:setup`, `cap deploy:check` and `cap deploy:migrations`. Everything appears to be fine. Capistrano doesn't spit out any errors. It creates a new release directory, creates the `restart.txt` file. But if I try to open `myapp.mydomain.co.uk` in the Browser, it can't open it. The logfile is empty.

Any ideas what might be going wrong here?

Re: Capistrano: deploys app without errors but browser can't open website

Did you try to deliver static files? And does the apache know about passenger? Is the passenger module loaded?

Greetz,
Benny