Today I faced the same problem. The approach I used to solve the problem was as follows:
1) Run
cap shell
on the same computer that you usually start at startup. Then do
env | sort
Executes a command on a remote server. Copy and paste the output into a local text file, for example. capenv.txt
2) SSH to the same remote server and run the same command, namely env | Sort. Save this locally as a text file, for example. sshenv.txt
3) Separate the two files and see what is in sshenv.txt, which is not in the capenv.txt file - this is most likely where your problem is.
< ++CAP ++ < _=/bin/sh --- > ++ SSH ++ > __array_start=0 14a15 > PS1=\[\e]2;tracker@charlotte\a\e[0;31m LIVE:\u@\h \w> \e[0m 18d18 < rvm_env_string=ruby-1.9.3-p194 21d20 < rvm_ruby_string=ruby-1.9.3-p194 27c26,28 < USER=tracker \ No newline at end of file --- > USER=tracker > USES_BASHRC=bashrc > _=/usr/bin/env
4) I immediately noticed that the shell interpreter was not installed on bash. This can be fixed by adding
set :shell, '/usr/bin/bash'
to the deploy.rb file. This solved my problem.
gordonbanderson Sep 10 2018-12-12T00: 00Z
source share