iamsammak / thehuntgame

Version 2
2 stars 0 forks source link

Second version of The Hunt.

Local Setup

TODO: fill out

Prod Setup (one time)

This assumes a clean Ubuntu box

  1. Install system packages: python2.7, pip, virtualenv, npm, nginx. git should already be installed.
    sudo apt update
    sudo apt upgrade
    sudo apt install python-pip # installs python2.7
    pip install --user virtualenv
    pip install --user virtualenvwrapper
    sudo apt install npm
    sudo apt install nginx
  2. Set up the virtualenv
    echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc
    echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2" >> ~/.bashrc
    echo "export WORKON_HOME=~/.virtualenvs" >> ~/.bashrc
    echo "source ~/.local/bin/virtualenvwrapper.sh" >> ~/.bashrc
    source ~/.bashrc
    mkvirtualenv -p /usr/bin/python2 thehuntgame
    workon thehuntgame
  3. Clone the repo
    cd ~
    git clone https://github.com/iamsammak/thehuntgame.git
  4. Set up nginx configs. Make sure SSL certs are set up.
    sudo rm /etc/nginx/sites-enabled/default

Deployment

Once master is ready to be deployed, ssh into the machine and run bash scripts/deploy.sh.