AWS app name: app-rentice
- staging
- AWS env. name:
app-rentice-staging
- URL: https://staging.app-rentice.edu
- AWS env. name:
- production
- AWS env. name:
app-rentice-production
- URL: https://www.app-rentice.edu
- AWS env. name:
- Install postgres
- Create a database - "App_rentice"
- Grant all permissions to database to your user
- Edit .env.dev to include your database username & password
- frontend/
yarn start
- Install required packages:
. build.sh
- Start server on local machine:
. run.dv.sh
- Open in browser
localhost:8000
- frontend/
yarn build
- Install required packages:
. build.sh
- Collect static files for django server:
python manage.py collectstatic
- Start server on local machine:
. run.loc.prod.sh
- Open in browser
localhost:8000
- Install Elastic Beanstalk cli: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html
- Configure Elastic Beanstalk cli: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
- Select a default region:
1) us-east-1 : US East (N. Virginia)
- Provide your
aws-access-id
andaws-secret-key
- Select an application to use: Select (Do NOT Create)
redflag-app
- Select a default region:
- Run
python manage.py collectstatic
to move the built files into the satic directory - Deploying:
eb deploy [AWS env. name]
- If adding new packages in import, run pipreqs . --force to update requirements.txt. Do not modify requirements.txt manually.