Giter Site home page Giter Site logo

central's Introduction

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 [email protected]: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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.