Skip to content

Commit

Permalink
Merge pull request #494 from IncognitoTGT/patch-1
Browse files Browse the repository at this point in the history
pnpm for codespaces and fix bareserver vuln
  • Loading branch information
xbubbo authored Mar 5, 2024
2 parents 6aba501 + dd1fe97 commit f739495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ As of January 1st, 2024, Replit is [no longer free](https://blog.replit.com/host

1. Create a GitHub account if you haven't already.
2. Click "Code" (green button) and then "Create Codespace on main."
3. In the terminal at the bottom, paste `npm i && npm run start`.
3. In the terminal at the bottom, paste `pnpm i && pnpm start`.
4. Respond to the application popup by clicking "Make public."
> Make sure you actually click the "Make public." button, or the proxy won't function properly.
5. Access the deployed website from the ports tab.
6. For subsequent uses in the same codespace, just run `npm run start`
6. For subsequent uses in the same codespace, just run `pnpm start`

### Solution for if there is no popup.

1. Run `npm i`, and before `npm run start`, prepend `PORT=8080`, replacing 8080 with another port. For example, `PORT=6969 npm run start`.
2. If this does not work then you can prepend `$env:PORT=8080;`, replacing 8080 with another port. For example, `$env:PORT=6969; npm run start`
1. Run `pnpm i`, and before `pnpm start`, prepend `PORT=8080`, replacing 8080 with another port. For example, `PORT=6969 pnpm start`.
2. If this does not work then you can prepend `$env:PORT=8080;`, replacing 8080 with another port. For example, `$env:PORT=6969; pnpm start`
3. Go to the ports tab, Click Forward A Port, And type the port number.
4. Right-click Visibility and set Port Visibility to Public.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "",
"license": "GPL-3.0-or-later",
"dependencies": {
"@tomphttp/bare-server-node": "^2.0.1",
"@tomphttp/bare-server-node": "^2.0.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-basic-auth": "^1.2.1",
Expand Down

0 comments on commit f739495

Please sign in to comment.