Commit 8cc4e222 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 1a230c00
......@@ -80,6 +80,8 @@ info "# Database folder permission"
chmod -R 775 database
chown -R $(whoami) database
cp scripts/nginx/default /etc/nginx/sites-available/default
info "# Restart nginx server"
service nginx restart
......
......@@ -22,7 +22,7 @@ PATH_TO_NGINX_CONFIG_FILE=${PATH_TO_SCRIPTS_DIR}/nginx/default.conf
APPLICATION_ROOT_PATH=/home/deploy
echo "APP_PATH ${APP_PATH}"
echo "PATH_TO_SCRIPTS_DIR ${APP_PATH}"
echo "PATH_TO_SCRIPTS_DIR ${PATH_TO_SCRIPTS_DIR}"
# Archive name
LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz
......@@ -42,7 +42,6 @@ script_execution_dir=$(pwd)
info "Scripts run under ${script_execution_dir} directory"
scp ${PATH_TO_SCRIPTS_DIR}/apply-update.sh ${HOST}:${APPLICATION_ROOT_PATH}
scp ${PATH_TO_NGINX_CONFIG_FILE} ${HOST}:/etc/nginx/sites-available/default
scp ${LATEST_ARTIFACT_PATH} ${HOST}:${APPLICATION_ROOT_PATH}
echo ${VERSION} > VERSION
......
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