-
-
Notifications
You must be signed in to change notification settings - Fork 9
"Cannot GET /" error when moving executable to a separate directory #102
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
Comments
It seems to be that the |
@rmr-code Do you have a solution? I met similar problem.
Although I could get these files content by |
@RaisinTen @jviotti @arcanis @Trott @ghoullier May I know how Node.SEA support the routing for static files? |
@kerwenzhang: I could not figure this out. It was something I was experimenting with and not in a production environment. So shelved it for now. |
@nodejs/single-executable |
I have a simple node js application using a combination of static html files and api paths. I find that after I generate the executable, it works in the current directory that contains the source code but does not work when moved to another directory.
The error I get on loading 'https://localhost:3000' from a different directory is:
Cannot GET /
The following is the server.js
The following is:
config.js
The following is:
sea-config.json
And the following are the commands I used to create the server executable
1 Build using esbuild
3 create blob
4 create copy of exe
5 inject experimental node
When I run
./server
from the created directory, it works. However, when I move the exe to a separate directory and run it, it gives theCannot GET /
error.What am I doing wrong? Thanks
The text was updated successfully, but these errors were encountered: