-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
30 lines (21 loc) · 1.72 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This Makefile aims to make daily admin tasks a bit easier by collecting
# all common commands here, with a simple built-in help system.
# On the command line, just type "make<space><tab>"
workers_status:
docker ps -a
restart_project_creation_worker:
docker compose up -d mapswipe_workers_creation
start_all_workers:
docker compose up -d postgres manager_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres
stop_all_workers:
docker compose stop
make_project_manager:
@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)
remove_project_manager:
@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)
update_firebase_functions_and_db_rules:
docker compose run --rm firebase_deploy
deploy_latest_workers_version:
git pull; docker compose build postgres django django-schedule-task manager_dashboard community_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres firebase_deploy; docker compose up -d postgres django django-schedule-task manager_dashboard community_dashboard nginx api mapswipe_workers_creation mapswipe_workers_stats mapswipe_workers_firebase_to_postgres firebase_deploy
update_tms_api_key:
@echo "first update the .env file with the new api key and then run this script with tms_name=your_tms_provider_name to update API key"; docker compose run --rm mapswipe_workers_creation python python_scripts/change_tms_api_key_for_projects.py $(tms_name)