ssh key is handled by the job
Deploy website on production server when committing on main / test (push) Failing after 8s

This commit is contained in:
bryanpedini committed 2026-02-01 19:13:29 +01:00
1 parent 289e06d6c3
commit 4f16efe7ed
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ fi
# Compress the built website and scp it to the remote host
tar -czf httpdocs.tgz -C public .
scp ${SSH_PRIVATE_KEY} 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 ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF'