From 2829c8ee53858bae10c74b05e89e50412908c06f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 31 Jul 2024 15:59:49 -0700 Subject: [PATCH] Deploy with Fly, not Vercel - refs #92 --- .github/workflows/build.yml | 16 ++++++++-------- requirements.txt | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cd6e6bc98..1ad926e428 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,15 +98,16 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: |- s3-credentials put-object til.simonwillison.net tils.db main/tils.db - - name: Deploy Datasette using Vercel + - name: Install Fly + run: | + curl -L https://fly.io/install.sh | sh + - name: Deploy Datasette using Fly env: - NOW_TOKEN: ${{ secrets.NOW_TOKEN }} + FLY_API_TOKEN: ${{ secrets.FLY_TOKEN }} run: |- cd main - datasette publish vercel tils.db \ - --token $NOW_TOKEN \ - --project simon-til \ - --scope datasette \ + datasette publish fly tils.db \ + --app simonw-tils \ --metadata metadata.yaml \ --static static:static \ --install datasette-template-sql \ @@ -119,5 +120,4 @@ jobs: --install datasette-block-robots \ --install datasette-llm-embed \ --plugins-dir plugins \ - --template-dir templates \ - --public + --template-dir templates diff --git a/requirements.txt b/requirements.txt index 5ddc731b29..c7000d67d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ sqlite-utils>=3.2 beautifulsoup4 datasette>=0.57 datasette-atom>=0.7 -datasette-publish-vercel>=0.14.1 +datasette-publish-fly datasette-template-sql>=1.0.2 datasette-graphql datasette-block-robots