Colmjude

/ notes
Notes
A collection of thoughts, things I've learnt and things I want to remember

Datasette on Render.com

I managed to get a datasette instance running on Render.com.

You need a python project that installs the datasette package. And you need the repo to include the sqlite db (e.g. name.db).

Then create a python Web Service on Render.com.

Set the start command to use datasette. I used

datasette name.db -h 0.0.0.0 --cors

Datasette usually uses 127.0.0.1 for the host but you can't use that (localhost equivalent) on Render.com.

Add the --cors flag if you want to be able to fetch data from the db from other sites. For example if you are setting up free text search on your site like Simon Willison did.


At on point Simon wrote about deploying datasette to Glitch so maybe one to try.