mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Small adjustments
This commit is contained in:
parent
14938d8fb5
commit
72941558d2
|
@ -11,6 +11,8 @@ Python dependencies can be installed with `pip install -r requirements.txt`
|
||||||
|
|
||||||
## Running the server
|
## Running the server
|
||||||
|
|
||||||
|
For development, you might not want to install maloja files all over your filesystem. Use the environment variable `MALOJA_DATA_DIRECTORY` to force all user files into one central directory - this way, you can also quickly change between multiple configurations.
|
||||||
|
|
||||||
You can quickly run the server with all your local changes with `python3 -m maloja 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 .`.
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# make the package itself runnable with python -m maloja
|
||||||
|
|
||||||
from .proccontrol.control import main
|
from .proccontrol.control import main
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
from .control import main
|
|
||||||
main()
|
|
|
@ -81,6 +81,10 @@ def direct():
|
||||||
setup()
|
setup()
|
||||||
from .. import server
|
from .. import server
|
||||||
|
|
||||||
|
def debug():
|
||||||
|
os.environ["MALOJA_DEV_MODE"] = 'true'
|
||||||
|
direct()
|
||||||
|
|
||||||
|
|
||||||
@mainfunction({"l":"level"},shield=True)
|
@mainfunction({"l":"level"},shield=True)
|
||||||
def main(action,*args,**kwargs):
|
def main(action,*args,**kwargs):
|
||||||
|
@ -89,7 +93,7 @@ def main(action,*args,**kwargs):
|
||||||
"restart":restart,
|
"restart":restart,
|
||||||
"stop":stop,
|
"stop":stop,
|
||||||
"run":direct,
|
"run":direct,
|
||||||
"debug":direct,
|
"debug":debug,
|
||||||
|
|
||||||
"import":tasks.loadlastfm,
|
"import":tasks.loadlastfm,
|
||||||
"backup":tasks.backuphere,
|
"backup":tasks.backuphere,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user