Coder Social home page Coder Social logo

mtaziz / zappa-django-example-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bjinwright/zappa-django-example-blog

0.0 2.0 0.0 27 KB

An example app that shows how to setup an app using environment variables (envs) with Zappa

Home Page: https://www.jinwright.net

License: GNU Affero General Public License v3.0

Python 72.56% CSS 10.46% HTML 16.98%

zappa-django-example-blog's Introduction

zappa-django-example-blog

An example app that shows how to setup an app using environment variables (envs) with Zappa

##Setup Guide

###Clone repo

git clone

###Create virtualenv

mkvirtualenv bjblog -a ~/yourpathto/repo

###Set Environment Varialbes (Required Variables Below)

DATABASE_ENGINE=django.db.backends.mysql
DATABASE_NAME=zappa_blog
DATABASE_USER=zappa_user
DATABASE_PASSWORD=zappa_password
DATABASE_HOST=zappa-blog.somecrud.us-east-1.rds.amazonaws.com
DATABASE_PORT=3306
SECRET_KEY=yoursecretkey
STATIC_URL=/static/
DEBUG=True
REDIS_HOST=yourhost.com:6379
STATICFILES_LOCATION=your-bucket-prod-static
MEDIAFILES_LOCATION=your-bucket-prod-media
STATIC_VERSION=1.0
AWS_STORAGE_BUCKET_NAME=your-bucket
AWS_S3_CUSTOM_DOMAIN=your-bucket.s3.amazonaws.com

###Install Requirements

pip install -r requirements.txt

###Zappa Init

Make sure you have the domain setting set in your stage in the zappa_settings.json file.

zappa init

###Zappa Deploy

zappa deploy dev

###Migrate DB

zappa manage migrate

###Collectstatic

zappa manage prod "collectstatic --noinput"

###Create SSL via API Gateway

Open the AWS Management Console and create a ACM certificate, validate via email and then use in the API Gateway console.

zappa-django-example-blog's People

Contributors

bjinwright avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.