Switch from railshosting.de to vserver and from MySQL to PostgreSQL.
This commit is contained in:
parent
5aa3d25d8c
commit
ed04ff64f9
3 changed files with 18 additions and 23 deletions
2
Gemfile
2
Gemfile
|
|
@ -3,7 +3,7 @@ source 'http://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '3.2.11'
|
gem 'rails', '3.2.11'
|
||||||
|
|
||||||
gem 'mysql2', '0.3.11'
|
gem 'pg'
|
||||||
|
|
||||||
gem 'bootstrap-sass', '2.0.2'
|
gem 'bootstrap-sass', '2.0.2'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@ GEM
|
||||||
polyamorous (~> 0.5.0)
|
polyamorous (~> 0.5.0)
|
||||||
mime-types (1.19)
|
mime-types (1.19)
|
||||||
multi_json (1.5.0)
|
multi_json (1.5.0)
|
||||||
mysql2 (0.3.11)
|
|
||||||
net-scp (1.0.4)
|
net-scp (1.0.4)
|
||||||
net-ssh (>= 1.99.1)
|
net-ssh (>= 1.99.1)
|
||||||
net-sftp (2.0.5)
|
net-sftp (2.0.5)
|
||||||
|
|
@ -109,6 +108,7 @@ GEM
|
||||||
net-ssh-gateway (1.1.0)
|
net-ssh-gateway (1.1.0)
|
||||||
net-ssh (>= 1.99.1)
|
net-ssh (>= 1.99.1)
|
||||||
orm_adapter (0.0.7)
|
orm_adapter (0.0.7)
|
||||||
|
pg (0.14.0)
|
||||||
polyamorous (0.5.0)
|
polyamorous (0.5.0)
|
||||||
activerecord (~> 3.0)
|
activerecord (~> 3.0)
|
||||||
polyglot (0.3.3)
|
polyglot (0.3.3)
|
||||||
|
|
@ -175,7 +175,7 @@ DEPENDENCIES
|
||||||
devise (= 2.0.4)
|
devise (= 2.0.4)
|
||||||
json (= 1.6.5)
|
json (= 1.6.5)
|
||||||
mail
|
mail
|
||||||
mysql2 (= 0.3.11)
|
pg
|
||||||
rails (= 3.2.11)
|
rails (= 3.2.11)
|
||||||
sass-rails (= 3.2.5)
|
sass-rails (= 3.2.5)
|
||||||
uglifier
|
uglifier
|
||||||
|
|
|
||||||
|
|
@ -2,29 +2,24 @@
|
||||||
# require 'bundler/capistrano'
|
# require 'bundler/capistrano'
|
||||||
|
|
||||||
set :application, "contactorama"
|
set :application, "contactorama"
|
||||||
set :local_repository, "web1@railshosting.de:/files/repositories/git/contactorama.git"
|
set :local_repository, "apps@tailorama.com:/opt/git-repo/contactorama.git"
|
||||||
set :repository, "/var/www/htdocs/web1/files/repositories/git/contactorama.git"
|
set :repository, "/opt/git-repo/contactorama.git"
|
||||||
|
|
||||||
set :deploy_to, "/var/www/htdocs/web1/files/rails/#{application}"
|
set :deploy_to, "/home/apps/rails/#{application}"
|
||||||
set :symlink_path, "/var/www/htdocs/web1/html/rails/#{application}"
|
#set :symlink_path, "/var/www/htdocs/web1/html/rails/#{application}"
|
||||||
|
|
||||||
set :scm, :git
|
set :scm, :git
|
||||||
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
||||||
set :user, "web1"
|
set :user, "apps"
|
||||||
ssh_options[:port] = 981
|
# ssh_options[:port] = 981
|
||||||
set :use_sudo, false
|
set :use_sudo, false
|
||||||
|
|
||||||
set :deploy_via, :remote_cache
|
set :deploy_via, :remote_cache
|
||||||
|
|
||||||
role :web, "railshosting.de" # Your HTTP server, Apache/etc
|
role :web, "tailorama.com" # Your HTTP server, Apache/etc
|
||||||
role :app, "railshosting.de" # This may be the same as your `Web` server
|
role :app, "tailorama.com" # This may be the same as your `Web` server
|
||||||
role :db, "railshosting.de", :primary => true # This is where Rails migrations will run
|
role :db, "tailorama.com", :primary => true # This is where Rails migrations will run
|
||||||
# role :db, "railshosting.de"
|
# role :db, "tailorama.com"
|
||||||
|
|
||||||
# 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"
|
|
||||||
}
|
|
||||||
|
|
||||||
# copy shared files after update
|
# copy shared files after update
|
||||||
task :update_config, :roles => :app do
|
task :update_config, :roles => :app do
|
||||||
|
|
@ -32,12 +27,12 @@ task :update_config, :roles => :app do
|
||||||
end
|
end
|
||||||
|
|
||||||
# create symlink after setup
|
# create symlink after setup
|
||||||
task :symlink_config, :roles => :app do
|
# task :symlink_config, :roles => :app do
|
||||||
run "mkdir -p /var/www/htdocs/#{user}/html/rails"
|
# run "mkdir -p /var/www/htdocs/#{user}/html/rails"
|
||||||
run "ln -nfs #{current_path}/public #{symlink_path}"
|
# run "ln -nfs #{current_path}/public #{symlink_path}"
|
||||||
end
|
# end
|
||||||
|
|
||||||
after "deploy:setup", :symlink_config
|
#after "deploy:setup", :symlink_config
|
||||||
after "deploy:update_code", :update_config
|
after "deploy:update_code", :update_config
|
||||||
|
|
||||||
# mod_rails (phusion_passenger) stuff
|
# mod_rails (phusion_passenger) stuff
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue