Skip to content

Commit

Permalink
Have Capistrano take care fo submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Mar 2, 2012
1 parent 55ce575 commit 7c12aa8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/deploy.rb
Expand Up @@ -4,16 +4,18 @@
set :scm, :git
set :user, :gianni

set :git_enable_submodules, 1

role :web, "46.38.167.162"
role :app, "46.38.167.162"

default_run_options[:pty] = true
# default_run_options[:pty] = true

namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
run "cd #{release_path}; git submodule init; git submodule update"
# run "cd #{release_path}; git submodule init; git submodule update"
run "kill $(ps -C app.rkt -o pid=); true" # Ignore failed kills
run "nohup racket #{release_path}/app.rkt > /dev/null 2>&1 &" # Start server
run "nohup /usr/bin/racket #{release_path}/app.rkt > /dev/null 2>&1 &" # Start server
end
end

0 comments on commit 7c12aa8

Please sign in to comment.