Skip to content

Commit ec71981

Browse files
committed
Update deploy script
1 parent 1262344 commit ec71981

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deploy/www_deploy.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source /home/centos/deploy.conf
1919

2020
#Get dist
2121
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}
22+
mkdir -p /var/www/html/${PROJECT}-${TAG}
2323
tar -zxf /home/centos/${TAG}.tar.gz -C /var/www/html/${PROJECT}-${TAG}
2424
cd /var/www/html/${PROJECT}-${TAG}
2525

@@ -41,8 +41,7 @@ find -type d -exec chmod 755 {} \;
4141
find -type f -exec chmod 644 {} \;
4242

4343
#Create symlink
44-
rm /var/www/html/${PROJECT}
45-
ln -s /var/www/html/${PROJECT}-${TAG} /var/www/html/${PROJECT}
44+
ln -sf /var/www/html/${PROJECT}-${TAG} /var/www/html/${PROJECT}
4645

4746
#Reload nginx and restart php-fpm
4847
sudo systemctl restart php71-php-fpm

0 commit comments

Comments
 (0)