diff options
author | elijah <elijah@riseup.net> | 2015-04-29 13:51:11 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-04-29 13:51:11 -0700 |
commit | e99856e5338424b36884e21db1f1399f4753ab3a (patch) | |
tree | 1e11e8b27c63f848a876f8f5dfca2e3b4eb5deb7 /doc/examples | |
parent | 73fd6f5ef05adf5abdb31bcca4377c0ee7ca052b (diff) |
clean up docs
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/capistrano/Capfile | 5 | ||||
-rw-r--r-- | doc/examples/capistrano/deploy.rb | 37 |
2 files changed, 42 insertions, 0 deletions
diff --git a/doc/examples/capistrano/Capfile b/doc/examples/capistrano/Capfile new file mode 100644 index 0000000..f65237f --- /dev/null +++ b/doc/examples/capistrano/Capfile @@ -0,0 +1,5 @@ +load 'deploy' +# Uncomment if you are using Rails' asset pipeline +load 'deploy/assets' +Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } +load 'config/deploy' # remove this line to skip loading any of the default tasks diff --git a/doc/examples/capistrano/deploy.rb b/doc/examples/capistrano/deploy.rb new file mode 100644 index 0000000..1fd4b8c --- /dev/null +++ b/doc/examples/capistrano/deploy.rb @@ -0,0 +1,37 @@ +require "bundler/capistrano" + +set :application, "webapp" + +set :scm, :git +set :repository, "https://leap.se/git/leap_web" +set :branch, "master" + +set :deploy_via, :remote_cache +set :deploy_to, '/home/webapp' +set :use_sudo, false + +set :normalize_asset_timestamps, false + +set :user, "webapp" + +role :web, "YOUR SERVER" # Your HTTP server, Apache/etc +role :app, "YOUR SERVER" # This may be the same as your `Web` server + +# We're not using this for now... +# role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run +# role :db, "your slave db-server here" + +# if you want to clean up old releases on each deploy uncomment this: +# after "deploy:restart", "deploy:cleanup" + +# if you're still using the script/reaper helper you will need +# these http://github.com/rails/irs_process_scripts + +# If you are using Passenger mod_rails uncomment this: +# namespace :deploy do +# task :start do ; end +# task :stop do ; end +# task :restart, :roles => :app, :except => { :no_release => true } do +# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" +# end +# end |