webOS icon indicating copy to clipboard operation
webOS copied to clipboard

Can I deploy this with vercel?

Open ghost opened this issue 2 years ago • 11 comments

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

ghost avatar Mar 09 '23 21:03 ghost

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.

NovaAppsInc avatar Mar 11 '23 23:03 NovaAppsInc

You also forked everything but the actual source code itself, every one of the forks you made are forks of this one.

NovaAppsInc avatar Mar 11 '23 23:03 NovaAppsInc

ok

ghost avatar Mar 15 '23 14:03 ghost

I know how to deploy this with replit, but my school blocked replit

ghost avatar Mar 15 '23 14:03 ghost

I know how to deploy this with replit, but my school blocked replit

how tell me

demo308 avatar Oct 01 '23 18:10 demo308

is assistance still needed for this?

Notplayingallday383 avatar Nov 08 '23 00:11 Notplayingallday383

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: @.***>

demo308 avatar Nov 08 '23 01:11 demo308

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

Notplayingallday383 avatar Nov 08 '23 12:11 Notplayingallday383

you also need to change static to public

dt5093 avatar Jan 04 '24 18:01 dt5093

https://vercel.com/new/clone?repository-url=https://github.com/TerbiumOS/webOS

demo308 avatar Jan 06 '24 02:01 demo308

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(); });

sosaaaaaaaaaaaaaaaaa avatar Dec 11 '24 13:12 sosaaaaaaaaaaaaaaaaa