From 595b698eead3e00b5fcf675c9655cb8fd72d487a Mon Sep 17 00:00:00 2001 From: Zhuojie Zhou Date: Sun, 1 Jan 2023 21:55:50 -0800 Subject: [PATCH] Fix demo website and use railway to host (#517) --- .github/workflows/cd_heroku.yml | 23 ----------------------- README.md | 7 ++++--- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/cd_heroku.yml diff --git a/.github/workflows/cd_heroku.yml b/.github/workflows/cd_heroku.yml deleted file mode 100644 index a6facc25..00000000 --- a/.github/workflows/cd_heroku.yml +++ /dev/null @@ -1,23 +0,0 @@ -# ******** NOTE ******** -# Deploy the https://try-openflagr.herokuapp.com demo service on main branch merges -# -name: cd_heroku - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - environment: heroku - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: akhileshns/heroku-deploy@v3.12.12 - with: - heroku_api_key: ${{secrets.HEROKU_API_KEY}} - heroku_app_name: "try-openflagr" - heroku_email: ${{secrets.HEROKU_EMAIL}} - usedocker: true diff --git a/README.md b/README.md index da4c8e3e..928c8936 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,13 @@ docker run -it -p 18000:18000 ghcr.io/openflagr/flagr open localhost:18000 ``` - -Or try it on [https://try-openflagr.herokuapp.com](https://try-openflagr.herokuapp.com), it may take a while for a cold start. +Or try it on [https://try-openflagr.up.railway.app](https://try-openflagr.up.railway.app), +it may take a while for a cold start, and every commit to the `main` branch will trigger +a redeployment of the demo website. ``` curl --request POST \ - --url https://try-openflagr.herokuapp.com/api/v1/evaluation \ + --url https://try-openflagr.up.railway.app/api/v1/evaluation \ --header 'content-type: application/json' \ --data '{ "entityID": "127",