Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Have Capistrano take care fo submodules

  • Loading branch information...
commit 7c12aa8465fe8772c35c17904c721cff45803bcb 1 parent 55ce575
@gf3 authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/deploy.rb
View
8 config/deploy.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.