diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-10 14:55:17 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-09-10 14:55:17 +1000 |
commit | 4e72352c8cc4c4626186f9613ca3dddf921cbaf8 (patch) | |
tree | 1fe88e7f7fb7c5bb3a9c68902ecf41d117c04b3a | |
parent | 60ccba742d9d939a1ee665ed7300771443170a63 (diff) |
capify .
-rw-r--r-- | Capfile | 4 | ||||
-rw-r--r-- | config/deploy.rb | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Capfile b/Capfile new file mode 100644 index 000000000..6a798eb2b --- /dev/null +++ b/Capfile @@ -0,0 +1,4 @@ +load 'deploy' +# Uncomment if you are using Rails' asset pipeline + # load 'deploy/assets' +load 'config/deploy' # remove this line to skip loading any of the default tasks
\ No newline at end of file diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 000000000..950f575a6 --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,25 @@ +set :application, "set your application name here" +set :repository, "set your repository location here" + +set :scm, :subversion +# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` + +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 |