Mercurial > code > home > repos > light9
diff bin/rdfdb @ 2064:412f798baf0c
move rdfdb_setup.py code from the simplified launcher
author | drewp@bigasterisk.com |
---|---|
date | Sat, 21 May 2022 15:53:56 -0700 |
parents | f8ab10f4c80b |
children | 00dc570c3ba1 |
line wrap: on
line diff
--- a/bin/rdfdb Sat May 21 01:46:29 2022 -0700 +++ b/bin/rdfdb Sat May 21 15:53:56 2022 -0700 @@ -1,23 +1,4 @@ -#!bin/python -import run_local # noqa -import os -from rdflib import URIRef -from light9 import networking, showconfig -import rdfdb.service - -rdfdb.service.main( - dirUriMap={ - os.environ['LIGHT9_SHOW'].encode('ascii').rstrip(b'/') + b'/': - URIRef(showconfig.showUri() + '/') - }, - prefixes={ - 'show': URIRef(showconfig.showUri() + '/'), - '': URIRef('http://light9.bigasterisk.com/'), - 'rdf': URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#'), - 'rdfs': URIRef('http://www.w3.org/2000/01/rdf-schema#'), - 'xsd': URIRef('http://www.w3.org/2001/XMLSchema#'), - 'effect': URIRef('http://light9.bigasterisk.com/effect/'), - 'dev': URIRef('http://light9.bigasterisk.com/theater/skyline/device/'), - }, - port=networking.rdfdb.port, -) +#!/bin/zsh +#pnpx vite -c light9/ascoltami/vite.config.ts & +pdm run uvicorn --port 8209 light9.rdfdb_setup:app +wait