The django-rest-framework api for my personal site, connorkelley.in
pyenv activate blog-venv-2
python manage.py runserver
source /var/app/venv/*/bin/activate
export $(sudo cat /opt/elasticbeanstalk/deployment/env | xargs)
cd /var/app/current
python manage.py shell
from blog.models import Post
Post.objects.all().delete()
from blog.temp.post_migrator import migrate_posts
migrate_posts()
Note--make sure you commit changes to git repo before deploying
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-rds.html