Changeset - a415be4cfac4
[Not reviewed]
default
0 3 2
drewp@bigasterisk.com - 3 years ago 2022-05-16 08:32:57
drewp@bigasterisk.com
timeline gets a launcher for vitejs server
5 files changed with 27 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/homepageConfig
Show inline comments
 
@@ -42,21 +42,21 @@ def location(path, server, viteServer):
 

	
 
    #   proxy_buffering off;
 
    """)
 

	
 

	
 
for role, server in sorted(graph.predicate_objects(netHome)):
 
    if not server.startswith('http') or role == L9['webServer']:
 
        continue
 
    path = graph.value(role, L9['urlPath'])
 
    if not path:
 
        continue
 
    server = server.rstrip('/')
 
    viteServer = server.replace('820', '830') # rewrite this please
 
    viteServer = server.replace('82', '83') # rewrite this please
 
    location(path, server, viteServer)
 

	
 
showPath = showconfig.showUri().split('/', 3)[-1]
 
root = showconfig.root()[:-len(showPath)].decode('ascii')
 
print(f"""
 
    location /{showPath} {{
 
      root {root};
 
    }}""")
bin/timeline
Show inline comments
 
new file 100755
 
#!/bin/zsh
 
pnpx vite -c light9/web/timeline/vite.config.ts &
 
wait
light9/networking.py
Show inline comments
 
@@ -47,14 +47,15 @@ collector = ServiceAddress(L9['collector
 
collectorZmq = ServiceAddress(L9['collectorZmq'])
 
effectEval = ServiceAddress(L9['effectEval'])
 
effectSequencer = ServiceAddress(L9['effectSequencer'])
 
keyboardComposer = ServiceAddress(L9['keyboardComposer'])
 
musicPlayer = ServiceAddress(L9['musicPlayer'])
 
oscDmxServer = ServiceAddress(L9['oscDmxServer'])
 
paintServer = ServiceAddress(L9['paintServer'])
 
picamserve = ServiceAddress(L9['picamserve'])
 
rdfdb = ServiceAddress(L9['rdfdb'])
 
subComposer = ServiceAddress(L9['subComposer'])
 
subServer = ServiceAddress(L9['subServer'])
 
vidref = ServiceAddress(L9['vidref'])
 
timeline = ServiceAddress(L9['timeline'])
 

	
 
patchReceiverUpdateHost = ServiceAddress(L9['patchReceiverUpdateHost'])
light9/web/timeline/vite.config.ts
Show inline comments
 
new file 100644
 
import { defineConfig } from "vite";
 

	
 
const servicePort = 8216;
 
export default defineConfig({
 
  base: "/timeline/",
 
  root: "./light9/web/timeline",
 
  publicDir: "../web",
 
  server: {
 
    host: "0.0.0.0",
 
    strictPort: true,
 
    port: servicePort + 100,
 
    hmr: {
 
      port: servicePort + 200,
 
    },
 
  },
 
  clearScreen: false,
 
  define: {
 
    global: {},
 
  },
 
});
show/dance2019/networking.n3
Show inline comments
 
@@ -9,27 +9,29 @@
 
show:dance2019 :networking sh:netHome .
 
sh:netHome
 
  :captureDevice    <http://localhost:8215/>;
 
  :effectEval       <http://localhost:8204/>;
 
  :effectSequencer  <http://localhost:8213/>;
 
  :keyboardComposer <http://localhost:8205/>;
 
  :musicPlayer      <http://localhost:8206/>;
 
  :paintServer      <http://localhost:8214/>;
 
  :rdfdb            <http://localhost:8209/>;
 
  :subServer        <http://localhost:8211/>;
 
  :vidref           <http://localhost:8212/>;
 
  :webServer        <http://localhost:8200/>;
 
  :timeline         <http://localhost:8216/>;
 
  
 
  :collector        <http://localhost:8202/>;
 
  :collectorZmq     <http://localhost:8203/> .
 

	
 
:captureDevice    :urlPath "captureDevice" .
 
:collector        :urlPath "collector" .
 
:dmxServer        :urlPath "dmxServer" .
 
:effectEval       :urlPath "effectEval" .
 
:effectSequencer  :urlPath "effectSequencer" .
 
:keyboardComposer :urlPath "keyboardComposer" .
 
:musicPlayer      :urlPath "ascoltami" .
 
:paintServer      :urlPath "paintServer" .
 
:rdfdb            :urlPath "rdfdb" .
 
:subServer        :urlPath "subServer" .
 
:vidref           :urlPath "vidref" .
 
:timeline         :urlPath "timeline" .
0 comments (0 inline, 0 general)