- Manual deploy of head of main branch
- On push to main branch runs ci tests and deploys
- Set up dependencies with:
- pip install -r /requirements.txt
- pip install -r /requirements-test.txt
- Set env vars:
- AWS_DEFAULT_REGION
- USER_POOL_ID
- DB_URL
- DB_NAME
- DB_PASSWORD
- DB_USER
- Run 'local_api.py' with 'Flask'
- Set up dependencies with:
- pip install -r /requirements.txt
- pip install -r /requirements-test.txt
- Enter command 'python test_runner.py'
- Make sure you're NOT USING PYTEST test runner, use unittest instead
- Because the project uses subTests which do not run with pytest
- Install aws CLI
- Run command 'aws logs tail /aws/lambda/pinfluencer-api-staging-PinfluencerFunction-AMRq3Jv7jD4M --follow --filter-pattern '
- Filter pattern can be anything that the log contains such as:
- The log type: 'ERROR', 'EXCEPTION', 'TRACE', 'DEBUG', 'INFO'
- The module name: 'src.web.middleware.MiddlewarePipeline.execute_middleware'
- Filter pattern can be anything that the log contains such as: