Skip to content

Instantly share code, notes, and snippets.

@jwlodek
Created August 20, 2024 17:20
Show Gist options
  • Select an option

  • Save jwlodek/9aea37a9a4b62d18cce8cd6fea09ae21 to your computer and use it in GitHub Desktop.

Select an option

Save jwlodek/9aea37a9a4b62d18cce8cd6fea09ae21 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Source the environment of your choice that has tiled + dependencies installed
source ~/.ipython/profile_collection_tst/venv/bin/activate
rm -f -r /tmp/tiled_storage
mkdir /tmp/tiled_storage
tiled catalog init sqlite+aiosqlite:////tmp/tiled_storage/catalog.db
# Generate a development key with tiled api_key create, and add it exporting env var to bashrc file
tiled serve catalog \
/tmp/tiled_storage/catalog.db \
-w /tmp/tiled_storage/data/ \
--api-key=$TILED_API_KEY \
-r /nsls2/data/tst/
-d
@tacaswell
Copy link

There is a rouge -d in here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment