adds doc/DEPLOYMENT instructions
This commit is contained in:
parent
92d9a57f3f
commit
4024329474
3 changed files with 27 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
23
doc/DEPLOYMENT.md
Normal file
23
doc/DEPLOYMENT.md
Normal file
|
@ -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
|
Loading…
Reference in a new issue