Skip to content

Commit 00a2f0d

Browse files
authored
Merge pull request #577 from mapswipe/makefile-common-tasks
2 parents 4b877cd + bbe8203 commit 00a2f0d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This Makefile aims to make daily admin tasks a bit easier by collecting
2+
# all common commands here, with a simple built-in help system.
3+
# On the command line, just type "make<space><tab>"
4+
5+
workers_status:
6+
docker ps -a
7+
8+
restart_project_creation_worker:
9+
docker compose up -d mapswipe_workers_creation
10+
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+
17+
make_project_manager:
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)