Deploy to Google App Engine#

Cloud Carbon Footprint is configured to be deployed to Google App Engine (standard environment) using Github Actions. See the Hello World example for instructions on setting up a Google Cloud Platform project and installing the Google Cloud SDK to your local machine.

Before deploying, you'll need to build the application and create the packages/api/.env and packages/client/.env file as detailed above. There are two scripts to populate these files as part of the Github Actions pipeline: packages/cli/ and client/

Once you've set up the CGP project and have the command line tools, Cloud Carbon Footprint can be deployed with ./appengine/ or ./appengine/, depending on your environment.

Or if you want to use Github Actions, you can see the configuration for this in .github/workflows/ci.yml.

It will deploy to https://<something>

Deploy to other cloud providers#

Cloud Carbon Footprint should be deployable to other cloud providers such as Heroku or AWS Elastic Beanstalk. However only Google App Engine has been tested currently, so there may be some work involved in doing this.

Don't forget to deploy your .env files or otherwise set the environment variables in your deployment.

Cloud Carbon Footprint is an open-source project, sponsored by ThoughtWorks Inc. under the Apache License, Version 2.0