Skip to content

This is Sample Django Automation App by using CircleCI and AWS Elastic Beanstalk.

Notifications You must be signed in to change notification settings

aps1027/django-circleci-aws-eb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django CircleCI AWS Elastic Beanstalk

Prerequisites

  1. install docker
  2. install docker-compose

Local Project Setup

  1. start docker-compose
    $ docker-compose up -d
    
  2. create .env file
    $ cp web/.env.example web/.env
    
  3. db migrate
    $ docker-compose exec web python manage.py migrate
    
  4. collect statci files
    $ docker-compose exec web python manage.py collectstatic
    

Automatic Deploy

Elastic Beanstalk

  1. create application with name django-circleci and DjangoCircleci-env
  2. select docker environment and select 64bit amazon linux
  3. set mysql database in Database settings
  4. add evironment variables (must be same with .env.example)

Elastic Container Registry

  1. create private repo django

CircleCI

  1. set up project django-circleci-aws-eb
  2. select existed config file
  3. set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  4. do code changes, commit and push
  5. after, test-build-deploy will be success

Check your code change apply or not by accessing <elastic beanstalk url>/admin/ and <elastic beanstalk url>/polls/.

About

This is Sample Django Automation App by using CircleCI and AWS Elastic Beanstalk.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published