Skip to content

Instantly share code, notes, and snippets.

@saltlakeryan
Last active February 9, 2018 21:22
Show Gist options
  • Save saltlakeryan/2e724996dc2d8e2b0f1e4a1ee49f9455 to your computer and use it in GitHub Desktop.
Save saltlakeryan/2e724996dc2d8e2b0f1e4a1ee49f9455 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /home/nemo
pip3 install git+https://github.com/usnistgov/NEMO.git@b219bba1166b893b4223d23ed3383fbf54e77fc5 gunicorn
mkdir /home/nemo/{email,media,secrets,logs,nginx,static}
wget -q -O - https://gist.github.com/saltlakeryan/5e3b1a2612f973689f25fced3452629/raw > settings.py
nemo generate_secret_key > secrets/django_secret_key.txt
django-admin makemigrations NEMO
django-admin migrate
django-admin createsuperuser
django-admin collectstatic
gunicorn -b 0.0.0.0:8000 NEMO.wsgi:application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment