Skip to content

Commit

Permalink
deploy via capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
magicseth committed Oct 10, 2009
1 parent 77b29ae commit 8b0516c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }

load 'config/deploy' # remove this line to skip loading any of the default tasks
6 changes: 3 additions & 3 deletions app/controllers/spirits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def create
m.body = ""
render(:text =>"Tell your friend to go to:
http://spiritboard.org/
http://spiritboard.org/
and type in the name:
and type in the name:
\"" + oldspirit.name + "\"", :status => 201 )
\"" + this.name + "\"", :status => 201 )
end
end
end
Expand Down
34 changes: 34 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
set :application, "SpiritBoard"
set :repository, "git@github.com:magicseth/SpiritBoard.git"
set :branch, "master"

set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`

set :deploy_to, "/home/betterma/apps/SpritBoardCap"

default_run_options[:pty] = true
set :ssh_options, { :forward_agent => true }

set :user, "betterma"

# set :deploy_via, :remote_cache



role :web, "bettermagician.com" # Your HTTP server, Apache/etc
role :app, "bettermagician.com" # This may be the same as your `Web` server
role :db, "bettermagician.com", :primary => true # This is where Rails migrations will run
# role :db, "your slave db-server here"

# If you are using Passenger mod_rails uncomment this:
# if you're still using the script/reapear helper you will need
# these http://github.com/rails/irs_process_scripts

# namespace :deploy do
# task :start {}
# task :stop {}
# task :restart, :roles => :app, :except => { :no_release => true } do
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
# end
# end

0 comments on commit 8b0516c

Please sign in to comment.