I’ll spare you the full debug output, but it boils down to:
A remote command failed on:
my-user@my-ip
Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:
FAILED with exit status 127:
[ -f ~/.profile ] && source ~/.profile
set -e
cd /home/avhana/edeliver/beacon/builds
if [ "mix" = "rebar" ]; then
echo "using rebar to fetch and update deps"
./rebar update-deps get-deps
elif [ "mix" = "mix" ]; then
echo "using mix to fetch and update deps"
if [ ! -f ~/.mix/rebar ] || [ ! -f ~/.mix/rebar3 ]; then
APP="beacon" MIX_ENV="prod" mix local.rebar --force
else
echo "rebar and rebar3 for mix was built already"
fi
APP="beacon" MIX_ENV="prod" mix local.hex --force
APP="beacon" MIX_ENV="prod" mix deps.get
fi
I don’t have a ~/.profile
and trying to create one and set env vars there didn’t work either.