Skip to content

Instantly share code, notes, and snippets.

View davidgrzyb's full-sized avatar

David Grzyb davidgrzyb

View GitHub Profile
@davidgrzyb
davidgrzyb / deploy.sh
Created April 21, 2022 19:11 — forked from actionm/deploy.sh
Zero downtime deployment script
# Deployment with zero downtime
# By default keeps 2 last deployments in KEEP_DEPLOYMENTS_DIR and current deployment
# Project domain
PROJECT_NAME=test.com
# Project directory
PROJECT_DIR=/home/forge/test.com
# Deployments directory
KEEP_DEPLOYMENTS_DIR=/home/forge/deploy