2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

Improve cli experience (#4881)

* fix cli call to get a fully running invoke

* use relativ import
This is importend when imported from outside

* Add version command

* Add more information to version command

* make print easier to understand
This commit is contained in:
Matthias Mair
2023-05-24 08:34:36 +02:00
committed by GitHub
parent 4079224658
commit fdd4169cd7
3 changed files with 36 additions and 2 deletions

View File

@ -1,3 +1,3 @@
web: env/bin/gunicorn --chdir $APP_HOME/InvenTree -c InvenTree/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:$PORT
worker: env/bin/python InvenTree/manage.py qcluster
cli: env/bin/python -m invoke
cli: . env/bin/activate && exec env/bin/python -m invoke