summaryrefslogtreecommitdiff
path: root/config/deploy.rb.example
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-09-27 22:14:06 +0200
committerAzul <azul@riseup.net>2012-09-27 22:14:06 +0200
commit54a12a93b5d8621b26c003d25ef80c01293e45a7 (patch)
tree329c61e383f1c70e5230f4d6af78f17e67511191 /config/deploy.rb.example
parent666cc6a4ef896f1a3f3210453bef14ccb6bda578 (diff)
Adding in what used to be leap webapp demo
we're merging repositories into one
Diffstat (limited to 'config/deploy.rb.example')
-rw-r--r--config/deploy.rb.example35
1 files changed, 35 insertions, 0 deletions
diff --git a/config/deploy.rb.example b/config/deploy.rb.example
new file mode 100644
index 0000000..552c820
--- /dev/null
+++ b/config/deploy.rb.example
@@ -0,0 +1,35 @@
+require "bundler/capistrano"
+
+set :application, "webapp"
+set :repository, "git://leap.se/leap_web_demo"
+
+set :scm, :git
+# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
+
+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 GOES HERE" # Your HTTP server, Apache/etc
+role :app, "YOUR SERVER GOES HERE" # This may be the same as your `Web` server
+# 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