THE PRIVATE KEEEEEEEYYY
Deploy website on production server when committing on main / test (push) Successful in 11s
Deploy website on production server when committing on main / test (push) Successful in 11s
This commit is contained in:
1 parent
2f2c60126c
commit
8a94fe0add
1 file changed
+1
-1
@@ -32,7 +32,7 @@ tar -czf httpdocs.tgz -C public .
|
||||
scp httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz
|
||||
|
||||
# SSH to the remote host, cd to the deployment path, and deploy the website (delete and overwrite everything)
|
||||
ssh ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF'
|
||||
ssh ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF'
|
||||
cd ${DEPLOYMENT_PATH}
|
||||
DATAPATH=$(cat .env | grep "NGINX_DATA" | sed "s/NGINX_DATA=//g")
|
||||
rm -rf ${DATAPATH}/{*,.*}
|
||||
|
||||
Reference in new issue
Block a user