expand_less
Welcome! Looking forward to hearing more about what you make of/with it. --[[John Abbe]]
--[[Pieter Vijfvinkel]].....Tue Jul 07 13:16:50 -0700 2009
Thanks for your interest, I'll keep in touch.
--[[Pieter Vijfvinkel]].....Tue Jul 07 13:17:23 -0700 2009I'have a couple of wiki's deployed using passenger 3.0; below the deploy.rb which I used succesfully. Still
there are a number of pitfalls you might need to overcome. By the way I use ln's to store the attachments in shared/system, this is better than in public because of future releases. In any case you want some additional info just place another comment on this page and I will reply.
#
set :application, "wagn"
#set :repository, "[email protected]:/Users/administrator/Documents/rubyonrails/git/wagn.git"
#set :server, 'r50e.moplan.nl'
#set :repository, 'git://207.97.227.239/wagn/wagn.git'
#set :repository, 'git://git.moplan.nl/wagn/wagn.git'
#set :repository, 'git://git.moplan.nl/wagn/wagn.git'
set :repository, 'git://github.com/wagn/wagn.git'
#set :chmod755, %w(app config db lib public vendor script tmp public/dispatch.cgi public/dispatch.fcgi public/dispatch.rb)
#set :server, 'www.vijfvinkel.org'
set :server, 'intranet.metrigroup.com'
set :user, 'deploy'
set :runner, 'deploy'
set :scm, :git
#set :copy_strategy,:export
set :deploy_via, :copy
set :git_shallow_clone, :l
set :git_enable_submodules, 1
set :branch, 'master'
#set :deploy_via, :remote_cache
set :deploy_to, "/home/#{user}/rails/#{application}"
set :restart_file,"#{current_path}/tmp/restart.txt"
#ssh_options[:paranoid]=false
#set :use_sudo, false
#ssh_options[:paranoid]=false
#ssh_options[:keys]=[File.join(ENV["HOME"],".ssh","id_rsa")]
set :use_sudo, false
role :app, 'intranet.metrigroup.com'
role :web, 'intranet.metrigroup.com'
role :db, 'intranet.metrigroup.com', :primary => true
namespace :deploy do
desc "Disable spinner"
task :start do; end
desc "Restart Passenger"
task :restart do
run "touch #{restart_file}"
end
task :symlink_shared do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
run "ln -nfs #{shared_path}/system/card_files #{release_path}/public/card_files"
run "ln -nfs #{shared_path}/system/card_images #{release_path}/public/card_images"
end
after 'deploy:update_code','deploy:symlink_shared'
end --[[Pieter Vijfvinkel]].....Wed Dec 15 10:21:20 -0800 2010very cool. Thanks for posting this. We should start a deploy library for examples like these. --[[Ethan McCutchen]].....Wed Dec 15 11:16:15 -0800 2010
Welcome! Looking forward to hearing more about what you make of/with it. --[[John Abbe]]
--[[Pieter Vijfvinkel]].....Tue Jul 07 13:16:50 -0700 2009
Thanks for your interest, I'll keep in touch.
--[[Pieter Vijfvinkel]].....Tue Jul 07 13:17:23 -0700 2009I'have a couple of wiki's deployed using passenger 3.0; below the deploy.rb which I used succesfully. Still
there are a number of pitfalls you might need to overcome. By the way I use ln's to store the attachments in shared/system, this is better than in public because of future releases. In any case you want some additional info just place another comment on this page and I will reply.
#
set :application, "wagn"
#set :repository, "[email protected]:/Users/administrator/Documents/rubyonrails/git/wagn.git"
#set :server, 'r50e.moplan.nl'
#set :repository, 'git://207.97.227.239/wagn/wagn.git'
#set :repository, 'git://git.moplan.nl/wagn/wagn.git'
#set :repository, 'git://git.moplan.nl/wagn/wagn.git'
set :repository, 'git://github.com/wagn/wagn.git'
#set :chmod755, %w(app config db lib public vendor script tmp public/dispatch.cgi public/dispatch.fcgi public/dispatch.rb)
#set :server, 'www.vijfvinkel.org'
set :server, 'intranet.metrigroup.com'
set :user, 'deploy'
set :runner, 'deploy'
set :scm, :git
#set :copy_strategy,:export
set :deploy_via, :copy
set :git_shallow_clone, :l
set :git_enable_submodules, 1
set :branch, 'master'
#set :deploy_via, :remote_cache
set :deploy_to, "/home/#{user}/rails/#{application}"
set :restart_file,"#{current_path}/tmp/restart.txt"
#ssh_options[:paranoid]=false
#set :use_sudo, false
#ssh_options[:paranoid]=false
#ssh_options[:keys]=[File.join(ENV["HOME"],".ssh","id_rsa")]
set :use_sudo, false
role :app, 'intranet.metrigroup.com'
role :web, 'intranet.metrigroup.com'
role :db, 'intranet.metrigroup.com', :primary => true
namespace :deploy do
desc "Disable spinner"
task :start do; end
desc "Restart Passenger"
task :restart do
run "touch #{restart_file}"
end
task :symlink_shared do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
run "ln -nfs #{shared_path}/system/card_files #{release_path}/public/card_files"
run "ln -nfs #{shared_path}/system/card_images #{release_path}/public/card_images"
end
after 'deploy:update_code','deploy:symlink_shared'
end --[[Pieter Vijfvinkel]].....Wed Dec 15 10:21:20 -0800 2010very cool. Thanks for posting this. We should start a deploy library for examples like these. --[[Ethan McCutchen]].....Wed Dec 15 11:16:15 -0800 2010