Skip to content

tree-plenish/carbon-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carbon-calculator

Will be routed to from: tpcalculator.org Direct link: http://carbon-calc-env.eba-yb82zppj.us-east-2.elasticbeanstalk.com/

This app will automatically re-deploy to Elastic Beanstalk on every push to the master branch via the Github actions workflow in .github/workflows/main.yml.

Because Elastic Beanstalk expects the flask app to be named application, set the FLASK_APP environment variable to application.py before running Flask locally. To run in debug mode locally, set the environment variable instead of using the parameter in application.run() so that the production app is not in debug mode. For example, on Linux:

$ setenv FLASK_DEBUG=1
$ setenv FLASK_APP=application.py
$ flask run

All installation dependencies required in the deployed app must be included in requirements.txt. If you are using a virtual environment, you can install the requirements locally from requirements.txt with pip3 install -r requirements.txt or output the installed packages in your virtual environment into requirements.txt with pip3 freeze > requirements.txt

About

HTML and Flask app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •