|
|
|
@ -1,13 +1,18 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
export PYTHONPATH=$PWD/src
|
|
|
|
|
STORE_CONTEXT=`echo $STORE_CONTEXT`
|
|
|
|
|
if [ -z "$STORE_CONTEXT" ]; then
|
|
|
|
|
STORE_CONTEXT='music/store'
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "$STORE_CONTEXT"
|
|
|
|
|
install(){
|
|
|
|
|
virtualenv sandbox
|
|
|
|
|
sandbox/bin/pip install -r requirements.txt
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start(){
|
|
|
|
|
sandbox/bin/python src/api/index.py --path $PWD/config.json --port 8084 --context store & > log
|
|
|
|
|
python3 src/api/index.py --path src/config.json --port 8084 --context $STORE_CONTEXT & > log
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stop(){
|
|
|
|
|