Skip to content

Commit f6cc7f6

Browse files
committed
update paths
1 parent 360c898 commit f6cc7f6

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Makefile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# =========================
44
VPS_USER ?= static_content_user
55
VPS_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/
88
REMOTE_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')
2121
FORCE_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
2626
else
2727
RELEASES_DIR := $(VPS_PROD_PATH)/preview/$(SAFE_BRANCH)/releases
@@ -43,6 +43,9 @@ dev:
4343
clean:
4444
git clean -fdX
4545

46+
check:
47+
pnpm run astro check
48+
4649
build:
4750
# TODO: update this to just `pnpm build` after resolving the astro-check warnings
4851
pnpm run astro build
@@ -51,9 +54,9 @@ build:
5154

5255
ifeq ($(FORCE_DEPLOY), true)
5356
deploy:
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"
5962
endif

0 commit comments

Comments
 (0)