Public | Automated Build

Last pushed: 18 hours ago
Short Description
inti api
Full Description

API for Inti

What is this repository for?

The stacks are:

  • Django
  • Django Rest Framework
  • Python 3.6.0

How do I get set up?

You need pyenv as Python version management and pyenv-virtualenv as the plugin to manage virtual environment.

  • Set up pyenv
    • brew install pyenv
    • pyenv install 3.6.4
  • Setup pyenv-virtualenv
    • brew install pyenv-virtualenv
    • Add these to bash_profile:

export PYENV_ROOT="$HOME/.pyenv"

export PATH="$PYENV_ROOT/bin:$PATH"

eval "$(pyenv init -)"

eval "$(pyenv virtualenv-init -)"

  • Create new virtual environment
    • pyenv virtualenv 3.6.4 inti
  • pyenv activate inti
  • cd inti
  • pip install -r requirements.txt
  • python runserver --settings=inti.settings.staging
  • open http://localhost:8000 in browser


  • Merge to master and it will deploy to staging automatically
  • Remove the current tag, pull the latest code in master branch, push the same tag to trigger production deployment

Run DB Migration on production

  • ssh -i ~/.ssh/dockercloud root@
  • docker ps
  • find inti api with tag 0.0.7. get the docker id
  • docker exec -it <dockerid> bash
  • python inti/ migrate
Docker Pull Command
Source Repository