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.

Revisions

  1. jwlodek created this gist Aug 20, 2024.
    17 changes: 17 additions & 0 deletions dev-tiled-serve.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/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