Closed simonw closed 4 years ago
This worked (after creating /tmp/all
as a folder full of files to search):
datasette publish cloudrun \
--static all:/tmp/all \
--install datasette-ripgrep \
--service datasette-ripgrep \
--install datasette-ripgrep \
--plugin-secret datasette-ripgrep path /app/all \
--apt-get-install ripgrep
I grabbed all repos for simonw
with github-to-sqlite repos simonw.db simonw
and then did this:
for line in $(
sqlite-utils simonw.db "select full_name from repos where full_name like 'simonw/datasette%'" \
--csv --no-headers
)
do
git clone git@github.com:$line --depth 1
done
I'm going to turn this into a manually triggered Actions workflow in this repo.
The new demo isn't quite working right, I think the checked out code isn't being uploaded to the /app/all
directory as it should be.
Demo is back up, deployed via the workflow - and it survives a search for .*
https://ripgrep.datasette.io/-/ripgrep?pattern=%2C*
Using new
--apt-get-install
option from https://github.com/simonw/datasette/issues/1110