mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-08-17 19:35:42 +02:00
ops(migrations): automate migration process
This commit is contained in:
@@ -33,8 +33,11 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
changepassword: ## Change password for user
|
changepassword: ## Change password for user
|
||||||
|
|
||||||
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} exec web python3 manage.py changepassword
|
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} exec web python3 manage.py changepassword
|
||||||
|
|
||||||
|
migrate: ## Apply migrations
|
||||||
|
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} exec web python3 manage.py migrate
|
||||||
|
|
||||||
pull: ## Pull Docker images.
|
pull: ## Pull Docker images.
|
||||||
docker login docker.pkg.github.com
|
docker login docker.pkg.github.com
|
||||||
${COMPOSE_PREFIX_CMD} docker compose ${COMPOSE_ALL_FILES} pull
|
${COMPOSE_PREFIX_CMD} docker compose ${COMPOSE_ALL_FILES} pull
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ if [ "${failed}" -eq 0 ]; then
|
|||||||
echo "Creating an account"
|
echo "Creating an account"
|
||||||
echo "#########################################################################"
|
echo "#########################################################################"
|
||||||
make username isNonInteractive=$isNonInteractive
|
make username isNonInteractive=$isNonInteractive
|
||||||
|
make migrate
|
||||||
|
|
||||||
tput setaf 2 && printf "\n%s\n" "Thank you for installing reNgine, happy recon!!"
|
tput setaf 2 && printf "\n%s\n" "Thank you for installing reNgine, happy recon!!"
|
||||||
echo "In case you have unapplied migrations (see above in red), run 'make migrate'"
|
echo "In case you have unapplied migrations (see above in red), run 'make migrate'"
|
||||||
|
|||||||
Reference in New Issue
Block a user