Skip to content

Commit

Permalink
Deploy: use login shell for capistrano commands
Browse files Browse the repository at this point in the history
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
danielbeardsley committed Jul 30, 2012
1 parent cf5b2e5 commit e03e059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/deploy.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
set :node_path, "/mnt/ebs/bin/node" set :node_path, "/mnt/ebs/bin/node"


default_run_options[:pty] = true 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 task :production do
# :deployment variable should match task name # :deployment variable should match task name
Expand Down

0 comments on commit e03e059

Please sign in to comment.