Skip to content

Commit

Permalink
Added comments + rephrased some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dmols committed Sep 19, 2024
1 parent 564ad4c commit 3f7fe4e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)');"

0 comments on commit 3f7fe4e

Please sign in to comment.