-
Notifications
You must be signed in to change notification settings - Fork 2.6k
pm2 serve <path> -p 8000 #2670
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
CLI : Process file :
|
I'm not found of the Is there no library to handle mimes types? Having the list embed in the source code feels wrong no? |
I looked into |
Ok fair enough about the mime types!
…On Sun, 29 Jan 2017 at 13:42, vmarchaud ***@***.***> wrote:
I looked into mime module that embed another dependency
<https://www.npmjs.com/package/mime-db> that contains a json list
<https://github.com/jshttp/mime-db/blob/master/db.json> and if you look
at the list there are a lot of uncommon mime so for me its better to have
an hardcoded list of 90% mime used in normal environment than using module
for this.
The env variable are indeed generic cause the Serve.js could be used
outside of pm2 serve, its just a simple http server.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2670 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABQr8_htY8xZVWn4J-Xwy_6pl5hRDVfXks5rXIlRgaJpZM4LwgVL>
.
|
👍 |
That would be great to add some pmx probes to track:
|
Published PM2 |
Serve folder via http node.js server on desired port.
It needs to embed a simple standalone http server with full mime type support
The text was updated successfully, but these errors were encountered: