You've already forked pedini.dev
THE PRIVATE KEEEEEEEYYY
All checks were successful
Deploy website on production server when committing on main / test (push) Successful in 11s
All checks were successful
Deploy website on production server when committing on main / test (push) Successful in 11s
This commit is contained in:
@@ -32,7 +32,7 @@ tar -czf httpdocs.tgz -C public .
|
|||||||
scp httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz
|
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 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}
|
cd ${DEPLOYMENT_PATH}
|
||||||
DATAPATH=$(cat .env | grep "NGINX_DATA" | sed "s/NGINX_DATA=//g")
|
DATAPATH=$(cat .env | grep "NGINX_DATA" | sed "s/NGINX_DATA=//g")
|
||||||
rm -rf ${DATAPATH}/{*,.*}
|
rm -rf ${DATAPATH}/{*,.*}
|
||||||
|
|||||||
Reference in New Issue
Block a user