mirror of https://github.com/krateng/maloja.git
Added simpler way to run server for development
This commit is contained in:
parent
5ba455dc92
commit
14938d8fb5
|
@ -1,13 +1,16 @@
|
||||||
# Basic Development Instructions
|
# Basic Development Instructions
|
||||||
|
|
||||||
|
> To avoid cluttering your system, you might want to use a [virtual environment](https://docs.python.org/3/tutorial/venv.html).
|
||||||
|
|
||||||
After you've cloned the repository, traverse into the `maloja` folder with `cd maloja`.
|
After you've cloned the repository, traverse into the `maloja` folder with `cd maloja`.
|
||||||
|
|
||||||
Make sure all dependencies are installed.
|
Make sure all dependencies are installed.
|
||||||
Your system needs a few packages, on Alpine Linux these should all be installed with `sh install_alpine.sh`.
|
Your system needs a few packages, on Alpine Linux these can all be installed with `sh install_alpine.sh`.
|
||||||
|
For other distros, try to find the equivalents of the packages listed there or simply check your error output.
|
||||||
Python dependencies can be installed with `pip install -r requirements.txt`
|
Python dependencies can be installed with `pip install -r requirements.txt`
|
||||||
|
|
||||||
## Running the server
|
## Running the server
|
||||||
|
|
||||||
You can quickly run the server with all your local changes with `python3 -m maloja.proccontrol.control run`.
|
You can quickly run the server with all your local changes with `python3 -m maloja run`.
|
||||||
|
|
||||||
You can also build the package with `pip install .`.
|
You can also build the package with `pip install .`.
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
from .proccontrol.control import main
|
||||||
|
main()
|
|
@ -0,0 +1,2 @@
|
||||||
|
from .control import main
|
||||||
|
main()
|
Loading…
Reference in New Issue