Child pages
  • Running the software
Skip to end of metadata
Go to start of metadata

The only trouble with the following is that it requires you to leave the session running. This should be turned into an upstart script.

Frontend

The frontend is a django project running on fcgi via nginx. It lives in /srv/metrics/frontend/.
To run it run the runfcgi command for python. Nginx is autostarted for us.

sudo . /srv/metrics/frontend/env/bin/activate
python /srv/metrics/frontend/growler/manage.py runfcgi host=127.0.0.1 port=8080
deactivate

Backend

The backend is a twisted project. It lives in /srv/metrics/backend/.
To run it, run the following commands:

sudo . /srv/metrics/backend/env/bin/activate
/srv/metrics/backend/scripts/flamongo &
deactivate

However, you'll want to run mongodb before hand by running

sudo rm /data/db/mongod.lock  # if the mongodb was not restarted properly
sudo /opt/mongodb/bin/mongod & # if the mongodb was not restarted properly and  --repair

All together

sudo . /srv/metrics/frontend/env/bin/activate
python /srv/metrics/frontend/growler/manage.py runfcgi host=127.0.0.1 port=8080
deactivate

sudo rm /data/db/mongod.lock  # if the mongodb was not restarted properly
sudo /opt/mongodb/bin/mongod & # if the mongodb was not restarted properly and  --repair

sudo . /srv/metrics/backend/env/bin/activate
/srv/metrics/backend/scripts/flamongo &
deactivate
  • No labels