-
Notifications
You must be signed in to change notification settings - Fork 175
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
Multiple node_modules Installed But Not Copied to Website Production Environment #171
Comments
Also reported in here. |
Thanks for reaching out. I can repro the issue, and we'll work on a fix. For now, disabling the performance optimizations we have for the build should make your build work. To do that, set app setting BUILD_FLAGS to "Off" (case matters, so "off" won't work"). Please let me know how it goes. A bit of context as to why we compress |
Hi, thanks for your information. Seems that the But here's some other problems: When
When
Seems that this is caused by different npm version. I modified my code to let it works, but I think that the Kudu separates the deploy environment and production environment. I can tell that when we set |
Still have no idea about your flag. Your flag affects the node.js environment itself, let it not stable. My Workaround: I will run npm install, and move the node_modules to somewhere that oryx not discard. And then, when the website starts, I will move that directory to This costs time when deploying, but works. I will wait for your fix. Thanks for your amazing product! |
From your description, oryx might still be trying to extract node_modules when the app is starting. This will happen if |
Thanks for your reply I did |
I think that the flag breaks the node.js version. |
The node_modules will be extracted to The result is correct, but I think this is a little strange. If a user serves node_modules as a public directory, that user will get 404 when he requesting the files in |
Yes, this is expected. You can find out more about why we do this, as well as how to disable this behavior, here: https://github.com/microsoft/Oryx/blob/master/doc/hosts/appservice.md#nodejs |
Well I think we can do Do you think this is possible? Is network volume contain some limitations? |
@capraynor we are doing this actually and it will be published in the next release. Thank you for the suggestion, we appreciate your feedback and please keep using the product and report any issues or suggestions that you may have. For the time being I'm closing the issue |
Still not solved on azure app service. |
@capraynor what is the issue that you are seeing? could you file a separate issue with more details? |
There should be multiple node_modules in my project when the
npm install
command completed.But not all the
node_modules
directory correctly copied to the production website directory.Repro Steps:
This is my example project.
https://github.com/capraynor/kudu-bug-multiple-node-modules-not-copied-correctly
When I deployed this project to azure web app, I cannot see
/home/site/wwwroot/another-directory/node_modules
usingssh
in advanced tools.But I can see
/tmp/the-hash/another-directory/node_modules
usingBash
inadvanced tools
I really have no idea on this. Could you help us to figure this out? Thanks!
I'm using the following technologies:
Looking forward for your reply!
The text was updated successfully, but these errors were encountered: