Fix deploy: scp migration files not directory to avoid nesting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0647eb91b6
commit
d52921e1f3
2
Makefile
2
Makefile
|
|
@ -36,7 +36,7 @@ clean:
|
||||||
deploy: clean build-linux
|
deploy: clean build-linux
|
||||||
ssh $(SHANNON) "systemctl stop dealspace || true"
|
ssh $(SHANNON) "systemctl stop dealspace || true"
|
||||||
scp $(BUILD_DIR)/$(BINARY)-linux $(SHANNON):$(DEPLOY_PATH)/bin/dealspace
|
scp $(BUILD_DIR)/$(BINARY)-linux $(SHANNON):$(DEPLOY_PATH)/bin/dealspace
|
||||||
scp -r migrations $(SHANNON):$(REMOTE_MIG)
|
scp migrations/*.sql $(SHANNON):$(REMOTE_MIG)/
|
||||||
scp -r portal $(SHANNON):$(DEPLOY_PATH)/
|
scp -r portal $(SHANNON):$(DEPLOY_PATH)/
|
||||||
ssh $(SHANNON) "chmod +x $(DEPLOY_PATH)/bin/dealspace && systemctl start dealspace && sleep 2 && curl -s http://localhost:8080/health"
|
ssh $(SHANNON) "chmod +x $(DEPLOY_PATH)/bin/dealspace && systemctl start dealspace && sleep 2 && curl -s http://localhost:8080/health"
|
||||||
@echo "Deployed ✓"
|
@echo "Deployed ✓"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue