Browse files

Deploy: use login shell for capistrano commands

On the server we were deploying to, the default non-interactive
environment for shell commands was bare. Using a login
shell ensures that at least .bashrc is loaded.
  • Loading branch information...
1 parent cf5b2e5 commit e03e059f9049f33c839222e3043746e99f1816ae @danielbeardsley danielbeardsley committed Jul 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/deploy.rb
4 config/deploy.rb
@@ -16,6 +16,10 @@
set :node_path, "/mnt/ebs/bin/node"
default_run_options[:pty] = true
+# Use a login shell when executing commands so that
+# .bashrc and .bash_profile are loaded.
+set :default_shell, "sh -l"
task :production do
# :deployment variable should match task name

0 comments on commit e03e059

Please sign in to comment.