These instructions are for deploying the demo to various cloud hosting providers. Alternatively, its Docker image can be used on other hosting providers such as DigitalOcean.
-
Install Gradient CLI.
pip install -U gradient
-
Login:
gradient apiKey <key>
-
Ensure Docker image
janjones/awe-demo
exists on Docker Hub (see demo running instructions). -
Deploy:
gradient deployments create --name awe-demo --spec demo/deployment.yaml
To stop the deployment, number of replicas can be set to 0 from the UI.
-
Download and install
flyctl
CLI. -
Login:
flyctl auth login
-
Build and deploy the app:
git clean -fXd # optional, removes all Git-ignored files flyctl deploy --remote-only --build-arg GITHUB_API_TOKEN=<token>
Alternatively, run GitHub Action Fly.io app.
-
Install Heroku CLI and Docker.
-
Login:
heroku login
-
Build and deploy the app:
heroku container:login git clean -fXd # optional, removes all Git-ignored files (cd demo && heroku container:push web --context-path .. --app awe-demo --arg GITHUB_API_TOKEN=<token>) heroku container:release web --app awe-demo
Alternatively, run GitHub Action Heroku app