Changeset - b731eaad3adf
[Not reviewed]
default
5 1 5
drewp@bigasterisk.com - 3 years ago 2022-04-09 18:52:50
drewp@bigasterisk.com
deprecate light9/web/ - use light9/{service}/ with web/ subdir if needed
6 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/homepage
Show inline comments
 
@@ -24,15 +24,15 @@ http {
 
  autoindex on;
 

	
 
  include "/tmp/light9_nginx_routes.conf";
 

	
 
  location / {
 
    proxy_pass http://localhost:8300;
 
  }
 

	
 
 }
 
}
 
EOF
 
head -1 /tmp/light9_nginx_routes.conf
 
pnpx vite -c light9/web/homepage/vite.config.ts &
 
pnpx vite -c light9/homepage/vite.config.ts &
 
/usr/sbin/nginx -c $CONF
 
wait
light9/homepage/ServiceButtonRow.ts
Show inline comments
 
file renamed from light9/web/homepage/ServiceButtonRow.ts to light9/homepage/ServiceButtonRow.ts
light9/homepage/StatsLine.ts
Show inline comments
 
file renamed from light9/web/homepage/StatsLine.ts to light9/homepage/StatsLine.ts
 
@@ -217,25 +217,24 @@ export class StatsLine extends LitElemen
 
      return (
 
        !m.name.endsWith("_created") && //
 
        !m.name.startsWith("python_gc_") &&
 
        m.name != "python_info" &&
 
        m.name != "process_max_fds" &&
 
        m.name != "process_virtual_memory_bytes" &&
 
        m.name != "process_resident_memory_bytes" &&
 
        m.name != "process_start_time_seconds" &&
 
        m.name != "process_cpu_seconds_total"
 
      );
 
    };
 

	
 
    // return table(this.stats, []);
 
    const displayedStats = this.stats.filter(nonBoring);
 
    return html`
 
      <div>
 
        <table>
 
          ${displayedStats.map(
 
            (row, rowNum) => html`
 
              <tr>
 
                <th>${row.name}</th>
 
                <td>
 
                  <table>
 
                    ${row.metrics.map(
 
                      (v) => html`
light9/homepage/StatsProcess.ts
Show inline comments
 
file renamed from light9/web/homepage/StatsProcess.ts to light9/homepage/StatsProcess.ts
light9/homepage/index.html
Show inline comments
 
file renamed from light9/web/homepage/index.html to light9/homepage/index.html
light9/homepage/vite.config.ts
Show inline comments
 
file renamed from light9/web/homepage/vite.config.ts to light9/homepage/vite.config.ts
 
import { defineConfig } from "vite";
 

	
 
export default defineConfig({
 
  root: "./light9/web/homepage",
 
  root: "./light9/homepage",
 
  server: {
 
    host: "0.0.0.0",
 
    strictPort: true,
 
    port: 8300,
 
    hmr: {
 
      port: 8400,
 
    },
 
  },
 
  define: {
 
    global: {},
 
  },
 
});
0 comments (0 inline, 0 general)