ops(migrations): automate migration process

This commit is contained in:
AnonymousWP
2024-05-12 18:54:12 +05:30
committed by Yogesh Ojha
parent 15fae9217d
commit 5fcc55ae3d
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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
+1
View File
@@ -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'"