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

Provide an alternative to NPX #85

Open
mipastgt opened this issue Oct 27, 2023 · 3 comments
Open

Provide an alternative to NPX #85

mipastgt opened this issue Oct 27, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@mipastgt
Copy link

In the JVM tutorial you describe how to use conveyor with JVM based applications. In this context it cannot be taken for granted that people have installed NPX and in addition the package 'serve'. It might be a good idea to at least mention in the chapter 'Serve the download site' that the call npx serve . could easily be replaced by just jwebserver assuming you have installed Java 18+. (Serving on port 8000 by default and not 3000!)Why should anybody be forced to use JavaScript frameworks if Java itself has all you need :-)

% $JAVA21_HOME/bin/jwebserver
Binding an Loopback als Standard. Verwenden Sie für alle Schnittstellen "-b 0.0.0.0" oder "-b ::".
Bedient /Users/mpaus/Downloads/tmp/ConveyorDesktopPlayground/conveyor-desktop-playground/output und Unterverzeichnisse auf 127.0.0.1 Port 8000
URL http://127.0.0.1:8000/
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /download.html HTTP/1.1" 200 -
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /icon.svg HTTP/1.1" 200 -
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /favicon.ico HTTP/1.1" 404 -
@mikehearn
Copy link
Member

We've had mixed luck with other web servers, we'd need to test jwebserver carefully and because it's new just haven't had time to do that yet. The problem is usually missing or buggy range request support. Can you successfully install/update Windows MSIX packages with jwebserver?

@mipastgt
Copy link
Author

That's a bit difficult for me to try out at the moment because I only work on macOS.

@mikehearn
Copy link
Member

For testing just the Mac version indeed any web server will work. We'll try out jwebserver soon.

@mikehearn mikehearn added the enhancement New feature or request label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants