Back-end BoilerPlate From YesTeacher.App
Following dependencies are mentioned in the requirements.txt file
pip3 should be installed to install all the dependencies
sudo apt install python3-pip
pip3 install -r requirements.txt
python3 application.py
will create a server on port 5002
application deployment environments
export APPLICATION_NAME='yourapplicationname'
export APPLICATION_ENVIRONMENT='yourapplication-env'
Look into s3 bucket it will have name with below based on your region
export S3_BUCKET='elasticbeanstalk-us-east-1-example'
export aws_access_key_id='**************'
And
export aws_secret_access_key='*************'
For Pushing updates to Elastic Beanstalk Check deployment.py Run deployment.py As Main Module
With Deployment Configuration Elastic BeanStalk Production Ready Check .ebextensions Folder
You will need multiple repository to be linked at some time,So when you will, Use this
Define a git remote which will point to multiple git remotes.
Say, we call it multiple: git remote add multiple REMOTE-URL-1
.
Register 1st push URL: git remote set-url --add --push multiple REMOTE-URL-1
.
Register 2nd push URL: git remote set-url --add --push multiple REMOTE-URL-2
.
Push a branch to all the remotes with git push multiple origin
With Cross Origin Request CORS Added application.py
All reditects at one place redirect_url.py
- boto3
- requests
- mysql-connector
- pytz
- pywebpush
- Pillow