33# =========================
44VPS_USER ?= static_content_user
55VPS_HOST ?= static.europython.eu
6- VPS_PROD_PATH ?= /home/static_content_user/content/europython_websites/ep2025test
7- VPS_PREVIEW_PATH ?= /home/static_content_user/content/europython_websites/ previews/
6+ VPS_PROD_PATH ?= /home/static_content_user/content/europython_websites/ep2025
7+ VPS_PREVIEW_PATH ?= /home/static_content_user/content/previews/
88REMOTE_CMD =ssh $(VPS_USER ) @$(VPS_HOST )
99
1010# Variables for build/deploy
@@ -21,7 +21,7 @@ SAFE_BRANCH := $(shell echo "$(BRANCH)" | sed 's/[^A-Za-z0-9._-]/-/g')
2121FORCE_DEPLOY ?= false
2222
2323# TODO: update this to the prod branches
24- ifeq ($(SAFE_BRANCH ) , deployment-simpler )
24+ ifeq ($(SAFE_BRANCH ) , ep2025 )
2525 RELEASES_DIR := $(VPS_PROD_PATH)/releases
2626else
2727 RELEASES_DIR := $(VPS_PROD_PATH)/preview/$(SAFE_BRANCH)/releases
4343clean :
4444 git clean -fdX
4545
46+ check :
47+ pnpm run astro check
48+
4649build :
4750 # TODO: update this to just `pnpm build` after resolving the astro-check warnings
4851 pnpm run astro build
5154
5255ifeq ($(FORCE_DEPLOY ) , true)
5356deploy :
54- @echo " \n\n**** Deploying branch '$( BRANCH) ' (safe: $( SAFE_BRANCH) ) to $( TARGET) ...\n\n"
55- $(REMOTE_CMD ) " mkdir -p $( TARGET) "
56- rsync -avz --delete ./dist/ $(VPS_USER ) @$(VPS_HOST ) :$(TARGET ) /
57- $(REMOTE_CMD ) " cd $( RELEASES_DIR) && ln -snf $( TIMESTAMP) current"
58- @echo " \n\n**** Deployment complete.\n\n"
57+ @echo " \n\n**** Deploying branch '$( BRANCH) ' (safe: $( SAFE_BRANCH) ) to $( TARGET) ...\n\n"
58+ $(REMOTE_CMD ) " mkdir -p $( TARGET) "
59+ rsync -avz --delete ./dist/ $(VPS_USER ) @$(VPS_HOST ) :$(TARGET ) /
60+ $(REMOTE_CMD ) " cd $( RELEASES_DIR) && ln -snf $( TIMESTAMP) current"
61+ @echo " \n\n**** Deployment complete.\n\n"
5962endif
0 commit comments