aboutsummaryrefslogtreecommitdiff
path: root/conf
span class="hl kwa">install-Ue .[dev] touch $(DEV_STAMP) .PHONY: remove-install-stamp remove-install-stamp:rm$(INSTALL_STAMP) .PHONY: update update: remove-install-stamp install## Update the dependencies .PHONY: serve serve:install## Run the ihatemoney server @echo 'Running ihatemoney on http://localhost:5000'$(PYTHON) -m ihatemoney.manage runserver .PHONY:testtest: install-dev ## Run the tests$(VENV)/bin/tox .PHONY: black black: install-dev ## Run the tests$(VENV)/bin/black --target-version=py36 . .PHONY: isort isort: install-dev ## Run the tests$(VENV)/bin/isort . .PHONY: release release: install-dev ## Release a new version (see https://ihatemoney.readthedocs.io/en/latest/contributing.html#how-to-release)$(VENV)/bin/fullrelease .PHONY: compress-assets compress-assets:## Compress static assets @which $(ZOPFLIPNG) >/dev/null || (echo "ZopfliPNG ($(ZOPFLIPNG)) is missing"&& exit 1) mkdir $(TEMPDIR)/zopfli $(eval CPUCOUNT := $(shell python -c "import psutil; print(psutil.cpu_count(logical=False))"))# We need to go into the directory to use an absolute path as a prefix cd ihatemoney/static/images/; find -name '*.png'-printf '%f\0' | xargs --null --max-args=1--max-procs=$(CPUCOUNT) $(ZOPFLIPNG) --iterations=500--filters=01234mepb --lossy_8bit --lossy_transparent --prefix=$(TEMPDIR)/zopfli/ mv $(TEMPDIR)/zopfli/* ihatemoney/static/images/ .PHONY: build-translations build-translations:## Build the translations$(VENV)/bin/pybabel compile -d ihatemoney/translations .PHONY: update-translations update-translations:## Extract new translations from source code$(VENV)/bin/pybabel extract --strip-comments --omit-header --no-location --mapping-file ihatemoney/babel.cfg -o ihatemoney/messages.pot ihatemoney $(VENV)/bin/pybabel update -i ihatemoney/messages.pot -d ihatemoney/translations/ .PHONY: create-database-revision create-database-revision:## Create a new database revision @read -p "Please enter a message describing this revision: " rev_message; \ $(PYTHON) -m ihatemoney.manage db migrate -d ihatemoney/migrations -m "$${rev_message}" .PHONY: create-empty-database-revision create-empty-database-revision:## Create an empty database revision @read -p "Please enter a message describing this revision: " rev_message; \ $(PYTHON) -m ihatemoney.manage db revision -d ihatemoney/migrations -m "$${rev_message}" .PHONY:cleanclean:## Destroy the virtual environmentrm-rf .venv .PHONY: help help:## Show the help indications @grep -E '^[a-zA-Z_-]+:.*?## .*$$'$(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
AgeCommit message (Expand)AuthorFilesLines
2021-02-04Add BABEL_DEFAULT_TIMEZONE to docker entryfile.sh (#714)Norman1-0/+1
2020-02-23Misc small updates (#536)am971-2/+2
2019-07-31[docker] Download IHM from Pypy or reference git repo;Benjamin Bouvier1-0/+23
2019-05-21Systemd doc fixes + update CONTRIBUTORSLuc Didry1-14/+0
2019-05-21conf: systemd: Add ihatemoney.service fileLuc Didry1-0/+14
2018-10-04Docker: Fix bug where conf is duplicated at each run (#392)0livd1-1/+1
2018-08-10Fix docker ADMIN_PASSWORD configuration (#384)0livd1-1/+1
2018-02-07Fix some anti patterns in docker deployment (#321)0livd1-4/+5
2017-10-25Add a DockerFile (#272)0livd1-0/+23
2017-10-23Enhance install process by generating config files from templates (#275)JocelynDelalande4-61/+0
2017-09-06BREAKING CHANGE: Rename supervisor program (#268)JocelynDelalande1-1/+1
2017-08-20Streamline installation doc, now using pip (#252)JocelynDelalande4-11/+14
2017-06-28Turn the WSGI file into a python module (#240)0livd2-2/+2
2017-06-20Move the wsgi file to the budget dir (#218)0livd1-1/+1
2017-06-18Tell Apache to add the budget directory to the python path (#215)0livd1-1/+1
2017-04-10Add the possibilty to run ihatemoney via Apache mod_wsgi (#191)0livd1-0/+16
2015-08-20Remove trailing whitespacesJocelyn Delande1-2/+2