File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,19 +43,20 @@ check:
4343 pnpm run astro check
4444
4545build :
46- pnpm build
46+ SITE_URL= $( SITE_URL ) pnpm build
4747
4848preview : RELEASES_DIR = $(VPS_PREVIEW_PATH ) /$(SAFE_BRANCH ) /releases
4949preview : TARGET = $(RELEASES_DIR ) /$(TIMESTAMP )
5050preview : SITE_URL = "https://$(SAFE_BRANCH ) .ep-preview.click"
51- preview :
51+ preview : build
5252 @echo " Preview site URL: $( SITE_URL) "
5353 echo $(TARGET )
5454 @echo " \n\n**** Deploying preview of a branch '$( BRANCH) ' (safe: $( SAFE_BRANCH) ) to $( TARGET) ...\n\n"
5555 $(REMOTE_CMD ) " mkdir -p $( TARGET) "
5656 rsync -avz --delete ./dist/ $(VPS_USER ) @$(VPS_HOST ) :$(TARGET ) /
5757 $(REMOTE_CMD ) " cd $( RELEASES_DIR) && ln -snf $( TIMESTAMP) current"
5858 @echo " \n\n**** Preview complete.\n\n"
59+ @echo " Open the preview site at: $( SITE_URL) \n\n"
5960
6061
6162ifeq ($(FORCE_DEPLOY ) , true)
You can’t perform that action at this time.
0 commit comments