Changeset - 1aa9a1293611
[Not reviewed]
default
1 0 3
drewp@bigasterisk.com - 3 years ago 2022-05-11 07:06:19
drewp@bigasterisk.com
asco gets a better launcher with vite in it
3 files changed with 23 insertions and 4 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami
Show inline comments
 
new file 100755
 
#!/bin/zsh
 
pnpx vite -c light9/ascoltami/vite.config.ts &
 
PYTHONPATH=`pwd` pdm run python light9/ascoltami/main.py
 
wait
light9/ascoltami/main.py
Show inline comments
 
file renamed from bin/ascoltami2 to light9/ascoltami/main.py
 
#!bin/python
 
from run_local import log
 
from light9.run_local import log
 
from twisted.internet import reactor
 
import sys, optparse, logging
 
from rdflib import URIRef
 
import gi
 
gi.require_version('Gst', '1.0')
 
gi.require_version('Gtk', '3.0')
 

	
 
from light9.ascoltami.player import Player
 
from light9.ascoltami.playlist import Playlist, NoSuchSong
 
from light9.ascoltami.webapp import makeWebApp, songUri, songLocation
 
from light9 import networking, showconfig
 
from standardservice.scalessetup import gatherProcessStats
 

	
 
from gi.repository import GObject, Gst
 

	
 
gatherProcessStats()
 

	
 

	
 
class App(object):
 

	
 
    def __init__(self, graph, show):
 
        self.graph = graph
 
        self.player = Player(onEOS=self.onEOS)
light9/ascoltami/vite.config.ts
Show inline comments
 
new file 100644
 
import { defineConfig } from "vite";
 

	
 
export default defineConfig({
 
  root: "./light9/ascoltami",
 
  publicDir: "../web",
 
  server: {
 
    host: "0.0.0.0",
 
    strictPort: true,
 
    port: 8306,
 
    hmr: {
 
      port: 8406,
 
    },
 
  },
 
  define: {
 
    global: {},
 
  },
 
});
 

	
0 comments (0 inline, 0 general)