Skip to content

Commit

Permalink
Deploy with Fly, not Vercel - refs #92
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 31, 2024
1 parent 26800e4 commit 2829c8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -119,5 +120,4 @@ jobs:
--install datasette-block-robots \
--install datasette-llm-embed \
--plugins-dir plugins \
--template-dir templates \
--public
--template-dir templates
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2829c8e

Please sign in to comment.