Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 1.75 KB

deploy.md

File metadata and controls

76 lines (52 loc) · 1.75 KB

Demo deployment

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.

Deploying to Gradient.run

  1. Install Gradient CLI.

    pip install -U gradient
  2. Login:

    gradient apiKey <key>
  3. Ensure Docker image janjones/awe-demo exists on Docker Hub (see demo running instructions).

  4. 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.

Deploying to Fly.io

  1. Download and install flyctl CLI.

  2. Login:

    flyctl auth login
  3. 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.

Deploying to Heroku

  1. Install Heroku CLI and Docker.

  2. Login:

    heroku login
  3. 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