Skip to content

Instantly share code, notes, and snippets.

@TristanWright
Last active September 8, 2015 16:03
Show Gist options
  • Save TristanWright/1d4d2f76c1b06d9ac83a to your computer and use it in GitHub Desktop.
Save TristanWright/1d4d2f76c1b06d9ac83a to your computer and use it in GitHub Desktop.
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8888;
server_name localhost;
client_max_body_size 32M;
location / {
proxy_pass http://localhost:3000;
}
location /paraview {
proxy_pass http://localhost:8889/paraview;
}
location /api/v1 {
proxy_pass http://localhost:8080/api/v1;
}
location /browser-sync {
proxy_pass http://localhost:3000/browser-sync;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
#prereq: have mongodb installed and running in the background
mkvirtualenv girder
which python # -> ~/Envs/girder/bin/python
cd Envs/girder/
git clone https://github.com/girder/girder.git
git clone https://github.com/Kitware/cumulus.git
git clone https://github.com/cjh1/cumulus-deploy.git
cd girder/
pip install -r requirements.txt
npm install
cd ..
cd cumulus
pip install -r requirements.txt
pip install -r requirements-dev.txt
cd ..
export CWD=$(pwd)
ln -s ${CWD}/cumulus/girder/cumulus ${CWD}/girder/plugins/cumulus
ln -s ${CWD}/cumulus/girder/task ${CWD}/girder/plugins/task
ln -s ${CWD}/cumulus/tests/cumulus_mock_plugin ${CWD}/girder/plugins/cumulus_mock_plugin
ln -s ${CWD}/cumulus/tests/task_mock_plugin ${CWD}/girder/plugins/task_mock_plugin
cd ..
export PYTHONPATH=$(pwd)/cumulus
echo ${PYTHONPATH}
cd girder/
python -m girder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment