updated makefile
This commit is contained in:
parent
ccbf592724
commit
94044bf94e
7
Makefile
7
Makefile
@ -9,14 +9,7 @@ server:
|
||||
go run server.go | cat &
|
||||
|
||||
deploy:
|
||||
@echo "⚙️ Switching to production..."
|
||||
git checkout production
|
||||
@echo "🔁 Merging master into production..."
|
||||
git merge master
|
||||
@echo "📤 Pushing production to gitea..."
|
||||
git push gitea production
|
||||
@echo "🔙 Switching back to master..."
|
||||
git checkout master
|
||||
@echo "🌐 Deploying to VPS..."
|
||||
ssh $(VPS_USER)@$(VPS_HOST) -p $(SSH_PORT) "cd $(VPS_PATH) && git checkout production && git pull origin production"
|
||||
@echo "✅ Deployment done!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user