<commit_before>SHELL := /bin/bash

default: web

run: build web

deploy: run
	@echo
	@echo "--------------------------"
	@echo "Brining up fresh instance "
	@echo "--------------------------"
	#TODO - replace with something more precise
	@echo "Waiting 20 secs to ensure db is running"
	#@sleep 20
	@fig run -p jakartaflood uwsgi python manage.py migrate
	#@run -p jakartaflood uwsgi python manage.py collectstatic --noinput
	#We need to run collect static in the same context as the running
	# uwsgi container it seems so I use docker exec here
	@docker exec -t -i jakartaflood_uwsgi_1 python manage.py collectstatic --noinput

rm:
	@echo
	@echo "--------------------------"
	@echo "Killing production instance!!! "
	@echo "--------------------------"
	@fig  -p jakartaflood kill
	@fig  -p jakartaflood rm

web:
	@echo
	@echo "--------------------------"
	@echo "Running in production mode"
	@echo "--------------------------"
	@fig  -p jakartaflood up -d web
	@dipall
<commit_msg>Fix make deploy.<commit_after>SHELL := /bin/bash

default: web

run: build web

deploy: run
	@echo
	@echo "--------------------------"
	@echo "Brining up fresh instance "
	@echo "--------------------------"
	#TODO - replace with something more precise
	@echo "Waiting 20 secs to ensure db is running"
	#@sleep 20
	@fig -p jakartaflood run uwsgi python manage.py migrate
	#@run -p jakartaflood uwsgi python manage.py collectstatic --noinput
	#We need to run collect static in the same context as the running
	# uwsgi container it seems so I use docker exec here
	@docker exec -t -i jakartaflood_uwsgi_1 python manage.py collectstatic --noinput

rm:
	@echo
	@echo "--------------------------"
	@echo "Killing production instance!!! "
	@echo "--------------------------"
	@fig  -p jakartaflood kill
	@fig  -p jakartaflood rm

web:
	@echo
	@echo "--------------------------"
	@echo "Running in production mode"
	@echo "--------------------------"
	@fig  -p jakartaflood up -d web
	@dipall

{'fraction_non_alphanumeric': 0.23741738688357905, 'fraction_numerical': 0.005083884087442806, 'mean_word_length': 1.954954954954955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2181389', 'n_tokens_mistral': 633, 'n_tokens_neox': 600, 'n_words': 230}