Hi all! I have some problem with edeliver deploy.
mix edeliver version production
EDELIVER FIREAPP WITH VERSION COMMAND
----- getting release versions from production servers
production node:
user : deploy
host : 206.189.102.57
path : /home/deploy/fireapp_release
response: Node is not running!
VERSION DONE!
here is my prod.exs
config :fireapp, FireappWeb.Endpoint,
http: [port: 8080],
url: [host: “example.com”, port: 80],
cache_static_manifest: “priv/static/cache_manifest.json”,
server: true,
code_reloader: false
and .deliver/config
APP=“fireapp”
BUILD_HOST="206.189.102.57"
BUILD_USER="deploy"
BUILD_AT="/tmp/edeliver/fireapp/builds"
PRODUCTION_HOSTS="206.189.102.57"
PRODUCTION_USER="deploy"
DELIVER_TO="/home/deploy/fireapp_release"
# For *Phoenix* projects, symlink prod.secret.exs to our tmp source
pre_erlang_get_and_update_deps() {
local _prod_secret_path="/home/deploy/prod.secret.exs"
if [ "$TARGET_MIX_ENV" = "prod" ]; then
__sync_remote "
ln -sfn '$_prod_secret_path' '$BUILD_AT/config/prod.secret.exs'
"
fi
}
pre_erlang_clean_compile() {
status "Running phoenix.digest" # log output prepended with "----->"
__sync_remote " # runs the commands on the build host
# [ -f ~/.profile ] && source ~/.profile # load profile (optional)
source ~/.profile
# echo \$PATH # check if rbenv is in the path
set -e # fail if any command fails (recommended)
cd '$BUILD_AT' # enter the build directory on the build host (required)
# prepare something
mkdir -p priv/static # required by the phoenix.digest task
cd '$BUILD_AT/assets'
npm install
./node_modules/brunch/bin/brunch build --production
# run your custom task
cd '$BUILD_AT'
APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phoenix.digest $SILENCE
"
}