Switch from railshosting.de to vserver and from MySQL to PostgreSQL.

This commit is contained in:
Señor Rolando 2013-01-26 23:37:24 +01:00
parent 5aa3d25d8c
commit ed04ff64f9
3 changed files with 18 additions and 23 deletions

View file

@ -2,29 +2,24 @@
# require 'bundler/capistrano'
set :application, "contactorama"
set :local_repository, "web1@railshosting.de:/files/repositories/git/contactorama.git"
set :repository, "/var/www/htdocs/web1/files/repositories/git/contactorama.git"
set :local_repository, "apps@tailorama.com:/opt/git-repo/contactorama.git"
set :repository, "/opt/git-repo/contactorama.git"
set :deploy_to, "/var/www/htdocs/web1/files/rails/#{application}"
set :symlink_path, "/var/www/htdocs/web1/html/rails/#{application}"
set :deploy_to, "/home/apps/rails/#{application}"
#set :symlink_path, "/var/www/htdocs/web1/html/rails/#{application}"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :user, "web1"
ssh_options[:port] = 981
set :user, "apps"
# ssh_options[:port] = 981
set :use_sudo, false
set :deploy_via, :remote_cache
role :web, "railshosting.de" # Your HTTP server, Apache/etc
role :app, "railshosting.de" # This may be the same as your `Web` server
role :db, "railshosting.de", :primary => true # This is where Rails migrations will run
# role :db, "railshosting.de"
# extend $PATH to make sure that 'rake' can be found.
set :default_environment, {
'PATH' => "/var/www/htdocs/web1/.gem/ruby/1.9.1/bin/:$PATH"
}
role :web, "tailorama.com" # Your HTTP server, Apache/etc
role :app, "tailorama.com" # This may be the same as your `Web` server
role :db, "tailorama.com", :primary => true # This is where Rails migrations will run
# role :db, "tailorama.com"
# copy shared files after update
task :update_config, :roles => :app do
@ -32,12 +27,12 @@ task :update_config, :roles => :app do
end
# create symlink after setup
task :symlink_config, :roles => :app do
run "mkdir -p /var/www/htdocs/#{user}/html/rails"
run "ln -nfs #{current_path}/public #{symlink_path}"
end
# task :symlink_config, :roles => :app do
# run "mkdir -p /var/www/htdocs/#{user}/html/rails"
# run "ln -nfs #{current_path}/public #{symlink_path}"
# end
after "deploy:setup", :symlink_config
#after "deploy:setup", :symlink_config
after "deploy:update_code", :update_config
# mod_rails (phusion_passenger) stuff