Skip to content

Commit

Permalink
fix: generate .env
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisSenicourt committed May 14, 2024
1 parent 6af579d commit 7bcb598
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ endif
push:
ssh -o StrictHostKeyChecking=no -p $(SSH_PORT) $(SSH_USER)@$(SSH_HOST) "rm -rf $(APP_PATH) && mkdir -p $(APP_PATH)"
scp -o StrictHostKeyChecking=no -P $(SSH_PORT) -r $(APP_FILES) $(SSH_USER)@$(SSH_HOST):$(APP_PATH)
ssh -o StrictHostKeyChecking=no -p $(SSH_PORT) $(SSH_USER)@$(SSH_HOST) "cd $(APP_PATH) && echo -e ACCESS_TOKEN_KEY=$(ACCESS_TOKEN_KEY)\\nREFRESH_TOKEN_KEY=$(REFRESH_TOKEN_KEY) > $(APP_PATH)/.env && npm i && systemctl restart ycap-back"
ssh -o StrictHostKeyChecking=no -p $(SSH_PORT) $(SSH_USER)@$(SSH_HOST) "cd $(APP_PATH) \
&& echo ACCESS_TOKEN_KEY=$(ACCESS_TOKEN_KEY) > $(APP_PATH)/.env \
&& REFRESH_TOKEN_KEY=$(REFRESH_TOKEN_KEY) >> $(APP_PATH)/.env \
&& npm i && systemctl restart ycap-back"

0 comments on commit 7bcb598

Please sign in to comment.