GitHub repository for AMI
- set environment variable in your computer, run
packer build
(in my case, I set up project in CircleCi, so it will build automatically when pr merged) - trigger build through API is also allowed
- scp project files, unzip if needed
- run
mysql.server start
- run
scp -r /Users/jingyang/GitHub/webapp.zip awsdev:/home/ubuntu
on local, thenunzip webapp.zip
- run
python3 manage.py makemigrations; python3 manage.py migrate; python3 manage.py runserver 0.0.0.0:8000
on the root path of the project - open the link, you will see the UI of the web app