diff --git a/Gemfile.lock b/Gemfile.lock index 9a401c30..008ffe72 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,7 +13,7 @@ GIT GIT remote: git://github.com/fsmanuel/common_deploy.git - revision: f5aaa761ab7104336756911ed06c46b6f3f82155 + revision: 03e4efb52bb24bfea22789fc699d993f6ac9eff7 specs: common_deploy (0.0.1) capistrano (>= 2.13.5) diff --git a/config/deploy.rb.SAMPLE b/config/deploy.rb.SAMPLE index a5d61193..ab5bd866 100644 --- a/config/deploy.rb.SAMPLE +++ b/config/deploy.rb.SAMPLE @@ -4,10 +4,10 @@ require 'common_deploy' set :application, 'foodsoft' set :domain, 'foodsoft.com' set :user, 'foodsoft' -set :default_stage, 'staging' +set :default_stage, 'staging' # staging and production are available via (set :stages, ["staging", "production"]) set :keep_releases, 5 -set :deploy_to, "/mnt/apps/#{application}_#{stage}" -set :repository, 'git@github.com:foodcoops/foodsoft.git' +set :deploy_to, "/mnt/apps/manuel/#{application}_#{fetch(:stage, default_stage)}" +set :repository, 'git://github.com/foodcoops/foodsoft.git' # resque worker diff --git a/doc/DEPLOYMENT.md b/doc/DEPLOYMENT.md new file mode 100644 index 00000000..30f886a6 --- /dev/null +++ b/doc/DEPLOYMENT.md @@ -0,0 +1,23 @@ +Deployment +========= + +Setup +-------- + + cp config/deploy.rb.SAMPLE config/deploy.rb + touch config/deploy/staging.rb + touch config/deploy/production.rb + + +Deploy +-------- + +On your first deploy you should run + bundle exec cap deploy:setup + bundle exec cap deploy:check + +Deploy to staging + bundle exec cap deploy + +Deploy to production + bundle exec cap production deploy \ No newline at end of file