Here are the files

$ sudo cat /etc/apache2/sites-available/capi_app


<VirtualHost *:80>
      ServerName www.passionate4.net
      DocumentRoot /var/www/capi_app/public
      <Directory /var/www/capi_app/public>
         Allow from all
         Options -MultiViews
      </Directory>
   </VirtualHost>


-----------  deploy.rb file -------------


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 => true # This is where Rails
migrations will run


default_run_options[:pty] =  true
set :repository,  "[email protected]: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'     #<<<<<<<<<<    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 => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end
end










On Thu, Nov 17, 2011 at 12:16 AM, Lee Hambley <[email protected]> wrote:

> That depends entirely on correctly configuring DNS, a web server, your
> database server, an application server, and more - please consult your
> distributions documentation on how to do those things.
>
> - Lee
>
> --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to
> [email protected] For more options, visit this
> group at http://groups.google.com/group/capistrano?hl=en
>

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to