mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-28 19:16:16 +00:00
Add run file
This commit is contained in:
parent
3ee287d6e3
commit
09c8f3be63
3 changed files with 64 additions and 11 deletions
10
README.md
10
README.md
|
@ -42,8 +42,10 @@ Image view
|
|||

|
||||
|
||||
## Running
|
||||
Currently only for reference
|
||||
By default, the app runs on port 5000 with 4 workers, you can pass in arguments to change that, use `-h` or `--help` to see all the options.
|
||||
|
||||
poetry install
|
||||
poetry run python3 -m flask --app gallery --debug run --host 0.0.0.0
|
||||
poetry run python3 -m gunicorn -w 4 -b 0.0.0.0:5000 'gallery:create_app()'
|
||||
Once you clone the repo to your desired location and have installed python `poetry`, install the requirements with `poetry install`. From there you can run the app with Gunicorn using `poetry run python3 run.py`!
|
||||
|
||||
You can also run the app in debug mode using `-d` or `--debug`, but its best to look into the logs file located under `~/.config/onlylegs/only.log`
|
||||
|
||||
Enjoy using OnlyLegs!
|
Loading…
Add table
Add a link
Reference in a new issue