mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Solve unavailable mysql on cold start
When booting for the first time, mysql has not properly initialized its data. Here, we boot and stop mysql to make sure the root user has been properly created.
This commit is contained in:
parent
537b42865f
commit
c0073c441b
@ -55,8 +55,11 @@ env: ## Generate the environment from templates and configuration values
|
||||
|
||||
##################### Database
|
||||
|
||||
databases: provision-databases migrate provision-oauth2 ## Bootstrap databases
|
||||
databases: init-mysql provision-databases migrate provision-oauth2 ## Bootstrap databases
|
||||
|
||||
init-mysql: ## Make sure that mysql is properly initialized
|
||||
docker-compose up -d mysql
|
||||
docker-compose stop mysql
|
||||
provision-databases: ## Create necessary databases and users
|
||||
$(DOCKER_COMPOSE_RUN) -v $(PWD)/../env/openedx/scripts:/openedx/scripts lms /openedx/scripts/provision.sh
|
||||
provision-oauth2: ## Create users for SSO between services
|
||||
|
Loading…
Reference in New Issue
Block a user