-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
[BUG] Local serving doesn't work #70
Comments
Gave it a try today, I executed the same command |
Hm, no, after building via |
Sorry mate, seems like I missed the notification for your report there. Will have a look at that soon. Cheers! Related to #32 |
Just realised I forgot to update redundant Wanted to quickly check out whats going on and turns out it works as intended on my end. Here is my logs with clean state: yarn build
yarn start
On my end, After launching my Regarding to an easy self-hosting you mentioned, I suggest using something like PM2 or something similar to that to have control over background processes instead. I used PM2 for a few personal projects long before and it really is intuitive, like managing docker containers. After fixing this issue, I will try out this project with PM2 and update documentation with required steps to install and run. |
Teşekkür ederim for looking into this! On PM2 - I installed it successfully, but what arguments should I use? I googled the error but looks like I need to create a |
For PM2 I need to do some research, its been ages since I last used it :D Will check it when I find time, but if you find a way before me please let me know |
I tried to run it with google, ChatGpt but with no luck. Apparently, PM2 does not work on windows, although some issues are marked as "closed". I tried some workarounds, and for me, this one worked:
BUT, according to the docs, How do you think, is it possible to create a server script and register a service, like in Chevron? That project uses NPM instead of Yarn and some other dependencies, but maybe it's possible to adapt. |
Yesterday I managed to run it as a service just like you mentioned. I think it supports Windows startup, but not without any other modifications. Chevron uses a different package, haven't used it for such purposes before but will give it a try soon. Thanks for the support mate! |
Describe The Bug
I was unable to run the project locally in production mode. The Development mode works fine.
To Reproduce
From the clean state, execute "yarn install" and "yarn build".
As per instructions, try to run
yarn start
. That will produce the error:Ok, se
node .next/standalone/server.js
. Output (I'm on Windows):This time the server starts, but the page doesn't load - can't find files. Console errors:
What can we do to fix things?
Specs
Additional Context
Ideally, I want to run the page as Chevron does in Hosted mode. First, I wanted to run the app via node, and then I wanted to add a script to register it as a service.
I don't know much about frontend development, but hoped it could work that way, without additional software or running docker.
The text was updated successfully, but these errors were encountered: