- install
docker - install
docker-compose
- start
docker-compose$ docker-compose up -d - create
.envfile$ cp web/.env.example web/.env - db migrate
$ docker-compose exec web python manage.py migrate - collect statci files
$ docker-compose exec web python manage.py collectstatic
- create application with name
django-circleciandDjangoCircleci-env - select
dockerenvironment and select64bit amazon linux - set
mysqldatabase inDatabase settings - add
evironment variables(must be same with.env.example)
- create private repo
django
- set up project
django-circleci-aws-eb - select
existed config file - set
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY - do code changes, commit and push
- after,
test-build-deploywill besuccess