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
 
@@ -48,13 +48,13 @@ for role, server in sorted(graph.predica
 
    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} {{
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
 
@@ -53,8 +53,9 @@ oscDmxServer = ServiceAddress(L9['oscDmx
 
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
 
@@ -15,12 +15,13 @@ sh:netHome
 
  :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" .
 
@@ -30,6 +31,7 @@ sh:netHome
 
: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)