Hello, please i’m having issue deploying to a digitalocean droplet (Ubuntu 16.04.3).
Please find below the error details:
Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:
FAILED with exit status 255:
current_shell="$0" || :
[ -z "$current_shell" ] && current_shell="$SHELL"
case "$current_shell" in
(*bash*) echo 'bash is installed and the default shell' ;;
(*zsh*) echo 'zsh is installed and the default shell' ;;
(*)
echo
echo "You are using an unsupported shell: '$current_shell'"
echo "edeliver requires either bash or zsh to be installed"
echo "and the default shell for the build user 'kehinde'"
echo "on your build host: '46.101.30.23'."
exit 1
;;
esac
set -e
if [ ! -d /home/kehinde/app_name/builds ]
then
mkdir -p /home/kehinde/app_name/builds
cd /home/kehinde/app_name/builds
git init
git config receive.denyCurrentBranch ignore
else
cd /home/kehinde/app_name/builds
git config receive.denyCurrentBranch ignore
fi
Please i’m a little bit curious about the localhost under the authorizing 46.101.30.23 on localhost Does this have anything to do with the error?
-----> Authorizing hosts
Authorizing 46.101.30.23 on localhost:
-----> Ensuring hosts are ready to accept git pushes
A remote command failed on:
kehinde@46.101.30.23
Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:
FAILED with exit status 255:
current_shell="$0" || :
[ -z "$current_shell" ] && current_shell="$SHELL"
case "$current_shell" in
(*bash*) echo 'bash is installed and the default shell' ;;
(*zsh*) echo 'zsh is installed and the default shell' ;;
(*)
echo
echo "You are using an unsupported shell: '$current_shell'"
echo "edeliver requires either bash or zsh to be installed"
echo "and the default shell for the build user 'kehinde'"
echo "on your build host: '46.101.30.23'."
exit 1
;;
esac
set -e
if [ ! -d /home/kehinde/enterprise/builds ]
then
mkdir -p /home/kehinde/enterprise/builds
cd /home/kehinde/enterprise/builds
git init
git config receive.denyCurrentBranch ignore
else
cd /home/kehinde/enterprise/builds
git config receive.denyCurrentBranch ignore
fi
Do you have git installed ? Edeliver adds your build machine as remote and uses the ssh protocol to push the source code of your app there. you can check that by running git remote -v show in you project directory after building on the build host. It shows something like that:
Do you build your project on localhost ? Do you copy ssh key under the vps ? You use Docker for the build ?
This is a .deliver/config and works without problems:
AUTO_VERSION=commit-count+git-revision+branch-unless-master
APP="mockapp"
BUILD_CMD=mix
RELEASE_CMD=mix
USING_DISTILLERY=true
BUILD_HOST="localhost"
BUILD_USER="builder"
BUILD_AT="/tmp/edeliver/mockapp/builds"
RELEASE_DIR="/tmp/edeliver/mockapp/builds/rel/mockapp"
PRODUCTION_HOSTS="requestmock.com" # deploy / production hosts separated by space
PRODUCTION_USER="alexandrubagu" # local user at deploy hosts
DELIVER_TO="/home/alexandrubagu/apps" # deploy directory on production hosts
pre_erlang_clean_compile() {
status "Running npm install & phoenix.digest" # log output prepended with "----->"
__sync_remote " # runs the commands on the build host
set -e # fail if any command fails (recommended)
cd '$BUILD_AT/apps/frontend/' # enter the build directory on the build host
# prepare something
mkdir -p priv/static # required by the phoenix.digest tas
cd assets ; npm install ; npm run deploy; cd ..
# run your custom task
APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phoenix.digest
"
}