Last active
February 9, 2018 21:22
-
-
Save saltlakeryan/2e724996dc2d8e2b0f1e4a1ee49f9455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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