for local environments use local_ prefix for the .envs.
-
Rename Project Replace
temp_project
with the actual name of your project to better reflect its identity. -
Domain Configuration
- Update any instance of
example.com
into real domain. - make sure the domain is pointing into the instance IP.
- Update any instance of
-
Fill the
.envs/.prod/.django
file -
Try the Local Development
-
create
dev
branch -
database in pycharm
docker compose -f docker-compose.local.yml up --build -d
- Uncomment the
.gitignore
,ci.yml
,dependabot
Files - Initialize the Git Repository
brew install hadolint sudo rm -r .git git init pre-commit install pre-commit install --hook-type commit-msg git add . git commit -m "Initial commit"
- Share the project on GitHub
- Create Ec2 instance using AMI image with IAM Role Full access
- Create S3 Bucket
- Clone the repository to your server.
git clone repo_url
- Upload the .envs files into the server
mkdir .envs/.prod/
nano .envs/.prod/.django
nano .envs/.prod/.postgres
- Run the docker container
sudo docker-compose -f docker-compose.prod.yml up --build