Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy demo #2

Closed
simonw opened this issue Nov 25, 2020 · 6 comments
Closed

Deploy demo #2

simonw opened this issue Nov 25, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@simonw
Copy link
Owner

simonw commented Nov 25, 2020

Using new --apt-get-install option from simonw/datasette#1110

@simonw simonw added the documentation Improvements or additions to documentation label Nov 25, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 25, 2020

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
Copy link
Owner Author

simonw commented Nov 25, 2020

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
Copy link
Owner Author

simonw commented Nov 25, 2020

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

@simonw
Copy link
Owner Author

simonw commented Nov 25, 2020

simonw added a commit that referenced this issue Nov 26, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 26, 2020

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 added a commit that referenced this issue Nov 26, 2020
simonw added a commit that referenced this issue Nov 26, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 26, 2020

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

@simonw simonw closed this as completed Nov 26, 2020
simonw added a commit that referenced this issue Nov 26, 2020
simonw added a commit that referenced this issue Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant