Fix problem with not starting up.
This commit is contained in:
+7
-4
@@ -41,8 +41,6 @@ class WebBuilder:
|
||||
self.dest_path,
|
||||
"components/tabs"
|
||||
)
|
||||
if not os.path.exists(self.tabs_path):
|
||||
os.mkdir(self.tabs_path)
|
||||
|
||||
WebBuilder.exit_handler_done = False
|
||||
self.userRequestedStopFile = os.path.join(
|
||||
@@ -83,9 +81,14 @@ class WebBuilder:
|
||||
with open(file, "w", encoding="utf-8") as f:
|
||||
f.write(s)
|
||||
|
||||
def get_tabs_path(self):
|
||||
if not os.path.exists(self.tabs_path):
|
||||
os.mkdir(self.tabs_path)
|
||||
return self.tabs_path
|
||||
|
||||
def make_tab_list(self):
|
||||
workflows_list_path = os.path.join(
|
||||
self.tabs_path,
|
||||
self.get_tabs_path(),
|
||||
"WorkflowsList.js"
|
||||
)
|
||||
tab_list_path = os.path.join(
|
||||
@@ -252,7 +255,7 @@ class WebBuilder:
|
||||
), json.dumps(workflow))
|
||||
|
||||
self.write_file(os.path.join(
|
||||
self.tabs_path,
|
||||
self.get_tabs_path(),
|
||||
f"{camelTabName}.vue"
|
||||
), template)
|
||||
|
||||
|
||||
+2
-2
@@ -721,12 +721,12 @@ class PresentationTab {
|
||||
const restartName = 'Restart';
|
||||
const restartButton = node.addWidget('button', restartName, "", async () => {
|
||||
console.log('presentation.restart');
|
||||
restartButton.name = '⟳ ' + restartName;
|
||||
restartButton.name = `⟳ ${restartName}`;
|
||||
const result = await t.restartNuxt();
|
||||
if (!result.ok) {
|
||||
console.error('restart failed', result.message);
|
||||
} else {
|
||||
restartButton.name = '✓ ' + restartName;
|
||||
restartButton.name = `✓ ${restartName}`;
|
||||
setTimeout(() => {
|
||||
restartButton.name = restartName;
|
||||
}, 5000);
|
||||
|
||||
@@ -9,7 +9,7 @@ export default (/* nuxtConfig */) => ({
|
||||
process.on('exit', () => {
|
||||
console.error('Shutdown');
|
||||
try {
|
||||
fs.unlink(pidFilePath);
|
||||
fs.unlink(pidFilePath, () => {});
|
||||
} catch(e) {
|
||||
console.error(`Could not remove pid file: ${pidFilePath}, ${e}`);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "presentation-ComfyUI"
|
||||
description = "Turn ComfyUI workflow to a website UI"
|
||||
version = "0.9.2"
|
||||
version = "0.9.3"
|
||||
license = {text = "MIT License"}
|
||||
|
||||
[project.urls]
|
||||
|
||||
Reference in New Issue
Block a user