diff --git a/config.json b/config.json index 80ec1a7..4dc0f99 100755 --- a/config.json +++ b/config.json @@ -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"} } diff --git a/init.sh b/init.sh index adb5f2e..ca96ee9 100644 --- a/init.sh +++ b/init.sh @@ -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 } diff --git a/start.sh b/start.sh deleted file mode 100755 index 8229da7..0000000 --- a/start.sh +++ /dev/null @@ -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"