simonw / datasette-ripgrep

Web interface for searching your code using ripgrep, built as a Datasette plugin
https://ripgrep.datasette.io
Apache License 2.0
72 stars 1 forks source link

Deploy demo #2

Closed simonw closed 4 years ago

simonw commented 4 years ago

Using new --apt-get-install option from https://github.com/simonw/datasette/issues/1110

simonw commented 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
simonw commented 4 years ago

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
simonw commented 4 years ago

I'm going to turn this into a manually triggered Actions workflow in this repo.

simonw commented 4 years ago

https://ripgrep.datasette.io/-/ripgrep?pattern=pytest

simonw commented 4 years ago

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.

simonw commented 4 years ago

Demo is back up, deployed via the workflow - and it survives a search for .* https://ripgrep.datasette.io/-/ripgrep?pattern=%2C*