Commit cf2e996b authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 0a37761f
......@@ -22,6 +22,9 @@ PATH_TO_NGINX_CONFIG_FILE=${PATH_TO_SCRIPTS_DIR}/nginx/default.conf
APPLICATION_ROOT_PATH=/home/demo
DB_PASSWORD_ENV=${5}
DB_USERNAME_ENV=${6}
DB_HOST_ENV=${7}
DB_PORT_ENV=${8}
# Archive name
LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz
......@@ -51,5 +54,5 @@ scp VERSION ${HOST}:${APPLICATION_ROOT_PATH}
echo ${HOST}
ssh ${HOST} <<EOL
chmod +x ${APPLICATION_ROOT_PATH}/apply-update.sh
${APPLICATION_ROOT_PATH}/apply-update.sh ${INSTANCE_NAME} ${LATEST_ARTIFACT_NAME} ${APPLICATION_ROOT_PATH} ${DB_PASSWORD_ENV}
${APPLICATION_ROOT_PATH}/apply-update.sh ${INSTANCE_NAME} ${LATEST_ARTIFACT_NAME} ${APPLICATION_ROOT_PATH} ${DB_PASSWORD_ENV} ${DB_USERNAME_ENV} ${DB_HOST_ENV} ${DB_PORT_ENV}
EOL
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment