diff --git a/Makefile b/Makefile index 954ebda0..b24ccb9c 100644 --- a/Makefile +++ b/Makefile @@ -4,17 +4,26 @@ ifneq (,$(wildcard ./.ins.env)) export endif +# spin up the containers start: docker compose -f docker-compose.nginx.yml up -d +# set up the database migrate: docker compose -f docker-compose.nginx.yml run php php bin/console doctrine:migrations:migrate -down: +# stop the containers +stop: docker compose -f docker-compose.nginx.yml down +# clear the Symfony cache +clean-cache: + docker compose -f docker-compose.nginx.yml run php bin/console cache:clear + +# fill your institutions table data with the variables in your ins.env file. Use this command if you are using mysql. ins-mysql: docker exec -it udoit3-db mysql -u root -proot udoit3 -e "INSERT INTO institution (title, lms_domain, lms_id, lms_account_id, created, status, vanity_url, metadata, api_client_id, api_client_secret) VALUES ('$(TITLE)', '$(LMS_DOMAIN)', '$(LMS_ID)', '$(LMS_ACCOUNT_ID)', '$(CREATED)', '$(STATUS)', '$(VANITY_URL)', '$(METADATA)', '$(API_CLIENT_ID)', '$(API_CLIENT_SECRET)');" +# fill your institutions table data with the variables in your institutions.env file. Use this command if you are using postgresql. ins-psql: docker exec -it -e PGPASSWORD=root udoit3-db psql -U root -d udoit3 -w -c "INSERT INTO institution (title, lms_domain, lms_id, lms_account_id, created, status, vanity_url, metadata, api_client_id, api_client_secret) VALUES ('$(TITLE)', '$(LMS_DOMAIN)', '$(LMS_ID)', '$(LMS_ACCOUNT_ID)', '$(CREATED)', '$(STATUS)', '$(VANITY_URL)', '$(API_CLIENT_ID)', '$(API_CLIENT_SECRET)');"