We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1262344 commit ec71981Copy full SHA for ec71981
deploy/www_deploy.sh
@@ -19,7 +19,7 @@ source /home/centos/deploy.conf
19
20
#Get dist
21
aws s3 cp s3://${S3_DIST_REPO}/${PROJECT}/${ENVIRONMENT}/dist/${TAG}.tar.gz /home/centos/ --region ${S3_DIST_REGION}
22
-mkdir -p /home/centos/${PROJECT}-${TAG}
+mkdir -p /var/www/html/${PROJECT}-${TAG}
23
tar -zxf /home/centos/${TAG}.tar.gz -C /var/www/html/${PROJECT}-${TAG}
24
cd /var/www/html/${PROJECT}-${TAG}
25
@@ -41,8 +41,7 @@ find -type d -exec chmod 755 {} \;
41
find -type f -exec chmod 644 {} \;
42
43
#Create symlink
44
-rm /var/www/html/${PROJECT}
45
-ln -s /var/www/html/${PROJECT}-${TAG} /var/www/html/${PROJECT}
+ln -sf /var/www/html/${PROJECT}-${TAG} /var/www/html/${PROJECT}
46
47
#Reload nginx and restart php-fpm
48
sudo systemctl restart php71-php-fpm
0 commit comments