Skip to content

Commit bbe8203

Browse files
authored
add most useful commands to makefile
1 parent 15a1d8b commit bbe8203

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

Makefile

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1-
# This Makefile aims to make daily mapswipe admin tasks a bit easier by collecting
1+
# This Makefile aims to make daily admin tasks a bit easier by collecting
22
# all common commands here, with a simple built-in help system.
33
# On the command line, just type "make<space><tab>"
4-
#
5-
# prefix all risky commands with "danger_" :)
64

75
workers_status:
86
docker ps -a
97

10-
danger_restart_project_creation_worker:
8+
restart_project_creation_worker:
119
docker compose up -d mapswipe_workers_creation
1210

11+
start_all_workers:
12+
docker compose up -d postgres manager_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres
13+
14+
stop_all_workers:
15+
docker compose stop
16+
1317
make_project_manager:
14-
@echo "run with [email protected] to give PM rights"; docker compose run mapswipe_workers_creation mapswipe_workers -v user-management --action=add-manager-rights --email=$(email)
18+
@echo "run with [email protected] to give PM rights"; docker compose run --rm mapswipe_workers_creation mapswipe_workers -v user-management --action=add-manager-rights --email=$(email)
19+
20+
remove_project_manager:
21+
@echo "run with [email protected] to remove PM rights"; docker compose run --rm mapswipe_workers_creation mapswipe_workers -v user-management --action=remove-manager-right --email=$(email)
22+
23+
update_firebase_functions_and_db_rules:
24+
docker compose run --rm firebase_deploy
25+
26+
deploy_latest_workers_version:
27+
git pull; docker compose build postgres manager_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres firebase_deploy; docker compose up -d postgres manager_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres firebase_deploy

0 commit comments

Comments
 (0)