https://github.com/katherinemichel/zappa-django-deployment-example
:boom: Zappa Django Deployment Example
https://github.com/katherinemichel/zappa-django-deployment-example
aws deployment django lambda tutorial zappa
Last synced: 3 months ago
JSON representation
:boom: Zappa Django Deployment Example
- Host: GitHub
- URL: https://github.com/katherinemichel/zappa-django-deployment-example
- Owner: KatherineMichel
- Created: 2016-12-30T02:28:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-31T04:11:30.000Z (over 8 years ago)
- Last Synced: 2025-01-16T21:53:02.878Z (4 months ago)
- Topics: aws, deployment, django, lambda, tutorial, zappa
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zappa Django Deployment Example
Files from initial deployment of [Zappa](https://github.com/Miserlou/Zappa) using Django
## Instructions
* Set up AWS account and properly install AWS credentials file on your computer
* Create GitHub repo, clone it, and cd into root folder
* Ensure you are using Python 2.7 version (I'm using 2.7.12 via pyenv)
* Create your working environment (zappa-django-deployment-example-env in my case)
* Install Django (`$ pip install django`)
* cd out of root folder### Create Project
$ django-admin.py startproject core zappa-django-deployment-example
### Zappa
cd into root folder, configure project settings to your liking
$ pip install zappa
$ pyenv local zappa-django-deployment-example-env
$ zappa init (you will need to have S3 bucket name ready)
$ zappa deploy production
$ zappa update production (as needed)
### LiveApplication will now be live. Note, AWS URL + environment name will be root and will prepend non-index template names. Example index: https://mb7zkt4j7l.execute-api.us-east-1.amazonaws.com/production
If your template content renders, you're golden :)
### Push to GitHub
$ git init (not needed if repo was cloned)
$ git add .
$ git commit -m "Message"
$ git push origin master