Skip to content

scitran/central

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dbc82cf · Mar 23, 2015

History

38 Commits
Oct 2, 2014
Oct 1, 2014
Oct 2, 2014
Feb 26, 2015
Mar 23, 2015
Mar 23, 2015
Feb 24, 2015
Mar 23, 2015
Feb 26, 2015
Mar 23, 2015
Feb 24, 2015
Oct 2, 2014

Repository files navigation

SDMC


Central Instance Registry.


Installation

Install mongodb. - debian installation

Install Nginx, uwsgi, uwsgi-plugin-python, git and python stuff.

sudo apt-get install \
    nginx \
    build-essential python python-dev python-virtualenv \
    uwsgi uwsgi-plugin-python \
    git

Create and activated virtualenv.

sudo chmod ugo+rw /var/local/
virtualenv /var/local/sdmc_env
source /var/local/sdmc_env/bin/activate

Clone sdmc git repository.

git clone git@github.com:scitran/internims.git /var/local/sdmc

Install requirements.

pip install -r requirements.txt

Create a logging directory, and make it writeable from webserver users (www-data?).

mkdir -p /var/local/sdmc/log
chown :www-data /var/local/sdmc/log
chmod g+w /var/local/sdmc/log

Copy and edit configuration files. The nginx configuration will need to know the location of the server certificate and server key. The uwsgi configuration will need to know the location of the pem file. Certificate file should contain certificate only, server.cert. Key file should contain key only, server.key. Pem file should contain private key, then certificate, and intermediates. See instructions for creating a pem file for more information.

cp production.ini.sample production.ini
cp nginx.conf.sample nginx.conf
vim production.ini nginx.conf

Configure nginx.

ln -s /var/local/sdmc/nginx.conf \
    /etc/nginx/sites-available/sdmc
ln -s /etc/nginx/sites-available/sdmc \
    /etc/nginx/sites-enabled/sdmc

Configure uwsgi.

ln -s /var/local/sdmc/production.ini \
    /etc/uwsgi/apps-available/sdmc.ini
ln -s /etc/uwsgi/apps-available/sdmc.ini \
    /etc/uwsgi/apps-enabled/sdmc.ini

Fire it up.

sudo service nginx restart
sudo service mongodb restart
sudo service uwsgi restart sdmc

About

Central Registry and Dashboard [defunct]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages