Can I deploy this with vercel?
I want to be able to deploy it with vercel, but when i fork this an try, it opens in a webpage with like 2 lines of code on it. How can i deploy this
you probably aren't doing it at all right if there is only 2 lines of code. I also have never tried using vercel so I have no clue how to help.
You also forked everything but the actual source code itself, every one of the forks you made are forks of this one.
ok
I know how to deploy this with replit, but my school blocked replit
I know how to deploy this with replit, but my school blocked replit
how tell me
is assistance still needed for this?
Yes
On Tue, Nov 7, 2023 at 6:30 PM John @.***> wrote:
is assistance still needed for this?
— Reply to this email directly, view it on GitHub https://github.com/TerbiumOS/webOS/issues/28#issuecomment-1800733606, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASK2MJJGKZ27M26K7UHFVUTYDLHC7AVCNFSM6AAAAAAVVULU7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQG4ZTGNRQGY . You are receiving this because you commented.Message ID: @.***>
So I too have never deployed with vercel but I think its self explanatory. So click fork on this repository then go to "Import from Github" on vercel, then Connect your Github account. "import" your forked version of it then give it a name for the project name and then go to edit for build settings override the install set it to npm install and Im not sure I dont think you can start a HTTP server on there or not so set the output directory to static/ and it should work
you also need to change static to public
https://vercel.com/new/clone?repository-url=https://github.com/TerbiumOS/webOS
when I try I get a website with the following code:
import { createBareServer } from "@nebula-services/bare-server-node"; import express from "express"; import { createServer } from "node:http"; import path from "path"; import fs from "fs"; import { fileURLToPath } from "url"; import wisp from "wisp-server-node"; import "ws";
console.log("Starting Terbium..."); const app = express(); const bare = createBareServer('/bare/') const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);
app.use(express.static("static")); const server = createServer();
server.on("request", (req, res) => { if (bare.shouldRoute(req)) { bare.routeRequest(req, res); } else { app(req, res); } });
server.on("upgrade", (req, socket, head) => { if (req.url.endsWith("/wisp/")) { wisp.routeRequest(req, socket, head); } else if (req.url.endsWith("/bare")) { bare.routeUpgrade(req, socket, head); } });
const port = parseInt("6969");
const manifest = fs.readFileSync(path.join(__dirname, 'package.json'), 'utf-8');
const { version } = JSON.parse(manifest);
server.listen(port, () => {
console.log(\x1b[38;2;50;174;98m@@@@@@@@@@@@@@~ B@@@@@@@@#G?. \x1b[38;2;50;174;98mB###&@@@@&####^ #@@@&PPPB@@@G. \x1b[38;2;50;174;98m .. ~@@@@J .. .#@@@P ~&@@@^ \x1b[38;2;60;195;240mWelcome to Legacy Terbium v${version} \x1b[38;2;50;174;98m^@@@@? .#@@@@###&@@&7 \x1b[38;2;50;174;98m^@@@@? .#@@@#555P&@@B7 \x1b[38;2;182;182;182mLegacy Terbium is running on ${port} \x1b[38;2;50;174;98m^@@@@? .#@@@P G@@@@ \x1b[38;2;182;182;182mAny problems you encounter let us know! \x1b[38;2;50;174;98m^@@@@? .#@@@&GGG#@@@@Y \x1b[38;2;50;174;98m^&@@@? B@@@@@@@@&B5~ );
});
process.on("SIGINT", () => { console.log("\x1b[0m"); process.exit(); });