Commit d1326914 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 8de2fb60
......@@ -57,6 +57,15 @@ info "# Extracting app package to ${PROJECT_ROOT}"
mkdir -p ${PROJECT_ROOT}
tar -xzf ${LATEST_ARTIFACT_NAME} -C ${PROJECT_ROOT}
info "# Setup permission for cache dir and storage"
chmod -R 777 ${PROJECT_ROOT}/storage/
chmod -R 777 ${PROJECT_ROOT}/bootstrap/cache
info "# Set user to .env file"
chown root: ${PROJECT_ROOT}/.env
cd ${PROJECT_ROOT}
info "# Set environments"
source .env
env
......@@ -79,15 +88,7 @@ sed -i '' 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PAS
info "# Create database backup"
mysqldump -u $([ -n "$DB_DATABASE_ENV" ] && echo "$DB_DATABASE_ENV" || echo "$DB_DATABASE") > DB_DUMP_PATH
info "# Setup permission for cache dir and storage"
chmod -R 777 ${PROJECT_ROOT}/storage/
chmod -R 777 ${PROJECT_ROOT}/bootstrap/cache
info "# Set user to .env file"
chown root: ${PROJECT_ROOT}/.env
info "# Set application key"
cd ${PROJECT_ROOT}
php artisan key:generate
info "# Optimizing Configuration Loading..."
......
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