aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-01-25 22:18:23 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-01-25 22:18:23 +0100
commit67bd7a27cc609eb1d9958c5de90426fadbd64dbb (patch)
tree2a6af53ce0c115609906acac0f2f4c15470b1183 /config
parentf087c23c8600fe197d3a59f4a0cd839754459b37 (diff)
downloadhmnoweb-67bd7a27cc609eb1d9958c5de90426fadbd64dbb.tar.gz
hmnoweb-67bd7a27cc609eb1d9958c5de90426fadbd64dbb.tar.bz2
hmnoweb-67bd7a27cc609eb1d9958c5de90426fadbd64dbb.zip
Add sample capistrano deploy script
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb.example39
1 files changed, 39 insertions, 0 deletions
diff --git a/config/deploy.rb.example b/config/deploy.rb.example
new file mode 100644
index 0000000..396e9b8
--- /dev/null
+++ b/config/deploy.rb.example
@@ -0,0 +1,39 @@
+require 'bundler/capistrano'
+require File.dirname(__FILE__) + '/capistrano_database_yml'
+
+set :application, "set your application name here"
+set :repository, "set your repository location here"
+
+set :scm, :git
+set :branch, 'master' unless exists?(:branch)
+
+set :deply_to, "path on server"
+
+# On FreeBSD uncomment the following lines
+#set :use_sudo, false
+#default_environment['RB_USER_INSTALL'] = '/usr/bin/install -c'
+
+#set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
+set :rvm_ruby_string, '1.9.3-p286'
+set :rvm_type, :system
+require "rvm/capistrano"
+
+role :web, "your web-server here" # Your HTTP server, Apache/etc
+role :app, "your app-server 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 \ No newline at end of file