handling stuff

community
Steve L. Nyemba 6 years ago
parent 7ffe564d8c
commit b3036c05b1

@ -1,9 +1,10 @@
{
"api":"dev.the-phi.com",
"plan":"monitor-light",
"protocol":"http",
"api":"localhost:8084",
"default_plan":"plan_D57KqIeZc7vYFo",
"store":{
"class":{"read":"CouchdbReader","write":"CouchdbWriter"},
"args":{"uri":"http://dev.the-phi.com:5984","dbname":"monitor","uid":"logs"}
"args":{"uri":"http://admin:@dm1n@dev.the-phi.com:5985","dbname":"smart-top","uid":"logs"}
}

@ -26,7 +26,7 @@ upgrade(){
}
start(){
sandbox/bin/python src/api/index.py --path $PWD/config.json
sandbox/bin/python src/api/index.py --path $PWD/config.json --context monitor &
}
stop(){
@ -37,9 +37,9 @@ stop(){
status(){
pid=`ps -eo pid,command|grep python|grep -E "$PWD"|grep index.py|grep -E "^ {0,}[0-9]+" -m 1 -o`
if [ "$pid" = "" ]; then
echo "Monitor API is Offline"
echo "Smart-Top API is Offline"
else
echo "Monitor API is Online $pid"
echo "Smart-Top API is Online $pid"
fi
}

@ -1,8 +0,0 @@
#!/bin/bash
#script_dir=`dirname $0`
#cd $script_dir
#/bin/bash -c ". activate sandbox; exec /bin/bash -i"
`source activate sandbox`
export PYTHONPATH=$PWD/src
python src/utils/agents/data-collector.py --path /Users/michaelmead/Documents/Programming/monitor/config.json --title "Seekers Dashboard"
Loading…
Cancel
Save