@@ -13,14 +13,14 @@ WEB_CONTAINER_ID := $$(docker inspect --format="{{.Id}}" ${CONTAINER_NAME})
13
13
14
14
autotranslate : # # Automatically translate all untranslated entries for all LOCALES in settings.py.
15
15
@echo " Starting makemessages..."
16
- @docker-compose exec web python3 app/manage.py makemessages -a -d django -i node_modules -i static -i ipfs
16
+ @docker-compose exec web python3.7 app/manage.py makemessages -a -d django -i node_modules -i static -i ipfs
17
17
@echo " Starting JS makemessages..."
18
- @docker-compose exec web python3 app/manage.py makemessages -a -d djangojs -i node_modules -i static -i assets/v2/js/lib/ipfs-api.js
18
+ @docker-compose exec web python3.7 app/manage.py makemessages -a -d djangojs -i node_modules -i static -i assets/v2/js/lib/ipfs-api.js
19
19
@echo " Starting autotranslation of messages..."
20
- @docker-compose exec web python3 app/manage.py translate_messages -u
20
+ @docker-compose exec web python3.7 app/manage.py translate_messages -u
21
21
# TODO: Add check for messed up python var strings.
22
22
@echo " Starting compilemessages..."
23
- @docker-compose exec web python3 app/manage.py compilemessages -f
23
+ @docker-compose exec web python3.7 app/manage.py compilemessages -f
24
24
@echo " Translation Completed!"
25
25
26
26
build : # # Build the Gitcoin Web image.
@@ -40,10 +40,10 @@ push: ## Push the Docker image to the Docker Hub repository.
40
40
@docker push " ${REPO_NAME} "
41
41
42
42
bundle : # # Create bundles for all `bundle` blocks then compress with webpack
43
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web bash -c " cd /code/app && python3 manage.py bundle && yarn run build"
43
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web bash -c " cd /code/app && python3.7 manage.py bundle && yarn run build"
44
44
45
45
collect-static : # # Collect newly added static resources from the assets directory.
46
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web bash -c " cd /code/app && python3 manage.py collectstatic -i other --no-input"
46
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web bash -c " cd /code/app && python3.7 manage.py collectstatic -i other --no-input"
47
47
48
48
compress-images : # # Compress and optimize images throughout the repository. Requires optipng, svgo, and jpeg-recompress.
49
49
@./scripts/compress_images.bash
@@ -69,13 +69,13 @@ fresh: ## Completely destroy all compose assets and start compose with a fresh b
69
69
@docker-compose down -v; docker-compose up -d --build;
70
70
71
71
load_initial_data : # # Load initial development fixtures.
72
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py loaddata initial
72
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py loaddata initial
73
73
74
74
load_clr_grant_match_data :
75
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py loaddata app/app/fixtures/users.json
76
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py loaddata app/app/fixtures/profiles.json
77
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py loaddata initial
78
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py loaddata app/app/fixtures/clr_match.json
75
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py loaddata app/app/fixtures/users.json
76
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py loaddata app/app/fixtures/profiles.json
77
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py loaddata initial
78
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py loaddata app/app/fixtures/clr_match.json
79
79
80
80
logs : # # Print and actively tail the docker compose logs.
81
81
@docker-compose logs -f
@@ -98,26 +98,26 @@ stylelint: ## Run stylelint against the project directory. Requires node, npm, a
98
98
tests : pytest eslint stylelint # # Run the full test suite.
99
99
100
100
migrate : # # Migrate the database schema with the latest unapplied migrations.
101
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py migrate
101
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py migrate
102
102
103
103
migrations : # # Generate migration files for schema changes.
104
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py makemigrations
104
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py makemigrations
105
105
106
106
compilemessages : # # Execute compilemessages for translations on the web container.
107
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py compilemessages
107
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py compilemessages
108
108
109
109
makemessages : # # Execute makemessages for translations on the web container.
110
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py makemessages
110
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py makemessages
111
111
112
112
get_ipdb_shell : # # Drop into the active Django shell for inspection via ipdb.
113
113
@echo " Attaching to container: ($( CONTAINER_NAME) ) - ($( WEB_CONTAINER_ID) )"
114
114
@docker attach $(WEB_CONTAINER_ID )
115
115
116
116
get_django_shell : # # Open a standard Django shell.
117
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py shell
117
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py shell
118
118
119
119
get_shell_plus : # # Open a standard Django shell.
120
- @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3 app/manage.py shell_plus
120
+ @docker-compose exec -e DJANGO_SETTINGS_MODULE=" app.settings" web python3.7 app/manage.py shell_plus
121
121
122
122
pgactivity : # # Run pg_activivty against the local postgresql instance.
123
123
@docker-compose exec web scripts/pg_activity.bash
0 commit comments