.
This commit is contained in:
parent
312cf602c7
commit
c3a7736dd0
12
Makefile
12
Makefile
@ -65,6 +65,12 @@ deploy/migrate: confirm
|
|||||||
ssh -t ${production_user}@${production_host} \
|
ssh -t ${production_user}@${production_host} \
|
||||||
'set -a; . /etc/party/environment; set +a; migrate -path /usr/share/party/migrations -database $$PARTY_DB_DSN up'
|
'set -a; . /etc/party/environment; set +a; migrate -path /usr/share/party/migrations -database $$PARTY_DB_DSN up'
|
||||||
|
|
||||||
|
## deploy/migrate/fresh: drop and re-run all migrations on production (destroys all data)
|
||||||
|
.PHONY: deploy/migrate/fresh
|
||||||
|
deploy/migrate/fresh: confirm
|
||||||
|
ssh -t ${production_user}@${production_host} \
|
||||||
|
'set -a; . /etc/party/environment; set +a; migrate -path /usr/share/party/migrations -database $$PARTY_DB_DSN drop -f && migrate -path /usr/share/party/migrations -database $$PARTY_DB_DSN up'
|
||||||
|
|
||||||
## deploy: pull latest, build .deb on server, and install it
|
## deploy: pull latest, build .deb on server, and install it
|
||||||
.PHONY: deploy
|
.PHONY: deploy
|
||||||
deploy: confirm
|
deploy: confirm
|
||||||
@ -91,6 +97,12 @@ db/migrations/up: confirm
|
|||||||
@echo 'Running up migrations...'
|
@echo 'Running up migrations...'
|
||||||
migrate -path ./migrations -database ${PARTY_DB_DSN} up
|
migrate -path ./migrations -database ${PARTY_DB_DSN} up
|
||||||
|
|
||||||
|
## db/migrations/fresh: drop and re-run all migrations locally (destroys all data)
|
||||||
|
.PHONY: db/migrations/fresh
|
||||||
|
db/migrations/fresh: confirm
|
||||||
|
migrate -path ./migrations -database ${PARTY_DB_DSN} drop -f
|
||||||
|
migrate -path ./migrations -database ${PARTY_DB_DSN} up
|
||||||
|
|
||||||
.PHONY: vendor
|
.PHONY: vendor
|
||||||
vendor:
|
vendor:
|
||||||
@echo 'Tidying and verifying module dependencies...'
|
@echo 'Tidying and verifying module dependencies...'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user