Spaces:
Running
Running
Commit
·
f09f1f7
1
Parent(s):
eed4912
Now we now the problem exists at the git clone level.
Browse files- myNodeServer.js +5 -5
- omnitool_init.sh +2 -1
myNodeServer.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* All rights reserved.
|
4 |
*/
|
5 |
//@ts-check
|
6 |
-
const VERSION = '0.6.0.hf.
|
7 |
|
8 |
const express = require('express');
|
9 |
const http = require('http');
|
@@ -69,7 +69,7 @@ const COMMON_STYLES = `
|
|
69 |
.highlight-button-green {
|
70 |
animation: pulseAnimation 1s infinite;
|
71 |
background-color: green;
|
72 |
-
color:
|
73 |
font-weight: bold;
|
74 |
}
|
75 |
.button-like-link {
|
@@ -359,9 +359,9 @@ async function handleGetRoot(req, res)
|
|
359 |
const gotoButtonClass = '';
|
360 |
|
361 |
let buttonsHTML = `
|
362 |
-
<button id="startServerButton" class="${startButtonClass}" onclick="startServer()">
|
363 |
-
<button id="exitIframeButton" class="${gotoButtonClass}" onclick="exitIframe()">
|
364 |
-
<a href="${HF_SPACE_DUPLICATE_URL}" target="_blank" class="button-like-link" id="duplicateRepoButton">DUPLICATE
|
365 |
|
366 |
const html = getButtonsString(buttonsHTML);
|
367 |
res.writeHead(200, { 'Content-Type': 'text/html' });
|
|
|
3 |
* All rights reserved.
|
4 |
*/
|
5 |
//@ts-check
|
6 |
+
const VERSION = '0.6.0.hf.010d';
|
7 |
|
8 |
const express = require('express');
|
9 |
const http = require('http');
|
|
|
69 |
.highlight-button-green {
|
70 |
animation: pulseAnimation 1s infinite;
|
71 |
background-color: green;
|
72 |
+
color: white;
|
73 |
font-weight: bold;
|
74 |
}
|
75 |
.button-like-link {
|
|
|
359 |
const gotoButtonClass = '';
|
360 |
|
361 |
let buttonsHTML = `
|
362 |
+
<button id="startServerButton" class="${startButtonClass}" onclick="startServer()">CREATE Omnitool Server</button>
|
363 |
+
<button id="exitIframeButton" class="${gotoButtonClass}" onclick="exitIframe()">LAUNCH Omnitool</button>
|
364 |
+
<a href="${HF_SPACE_DUPLICATE_URL}" target="_blank" class="button-like-link" id="duplicateRepoButton">DUPLICATE Space</a>`;
|
365 |
|
366 |
const html = getButtonsString(buttonsHTML);
|
367 |
res.writeHead(200, { 'Content-Type': 'text/html' });
|
omnitool_init.sh
CHANGED
@@ -3,8 +3,9 @@ echo "--- START ---"
|
|
3 |
|
4 |
echo "--- GIT OMNITOOL ---"
|
5 |
git clone https://github.com/omnitool-ai/omnitool
|
|
|
6 |
|
7 |
-
chmod
|
8 |
chown -R node ./omnitool
|
9 |
|
10 |
mkdir -p ./omnitool/node_modules
|
|
|
3 |
|
4 |
echo "--- GIT OMNITOOL ---"
|
5 |
git clone https://github.com/omnitool-ai/omnitool
|
6 |
+
chown -R node:node ./omnitool
|
7 |
|
8 |
+
chmod 0777 ./omnitool
|
9 |
chown -R node ./omnitool
|
10 |
|
11 |
mkdir -p ./omnitool/node_modules
|