Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to npm start this using a static IP address #49

Open
georgebaileyster opened this issue Nov 27, 2023 · 5 comments
Open

how to npm start this using a static IP address #49

georgebaileyster opened this issue Nov 27, 2023 · 5 comments

Comments

@georgebaileyster
Copy link

Hi I cannot work out how this can be started to anything other than localhost. Is there a simple solution to this.

Many thanks for your help.

@Notplayingallday383
Copy link
Member

If your static hosting you don’t need to run npm start because it’s not possible however set the output directory to static and just change the bare server in uv.config.js and dynamic.config.js to something else so it doesn’t break

@dt5093
Copy link

dt5093 commented Jan 25, 2024

what do you mean something else

@NovaAppsInc
Copy link
Member

when using an IP of your machine find your IP (i.e. 192.168.1.1) and put the port that it's running on :6969 (i.e. 192.168.1.1:6969

@88411
Copy link

88411 commented Oct 10, 2024

I found an alternative that actually works: Cloudflare

  1. First fork this repo
  2. Then go to Cloudflare.com and sign in
  3. Then on the left column select workers and pages
  4. After that click on create and then select pages (NOT workers)
  5. Select connect to git and connect your GitHub account.
  6. Then select the forked repo and click begin setup.

These next steps are very important:

DO NOT touch framework preset.

  1. For the build commands, type: "npm install" (The repo says to put "npm install && npm start" however this does not work)
  2. For output directory type: "static"
  3. Then click save and deploy and cross your fingers that everything goes well

After it builds it will provide you with a link and your good to go.

Also if for some reason you can't figure it out here is my link I got from following those exact steps
"https://webos2-d9d.pages.dev/"

By the time you are reading this it might be blocked tho idk

GL

@88411
Copy link

88411 commented Oct 10, 2024

You can also use Vercel.

After you deploy it click on settings and change the output directory and build command to what is in my tutorial above for cloudflare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants