-
Notifications
You must be signed in to change notification settings - Fork 190
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
Building v7.2.2.56 with NODE_ENV set to production lacks some files #605
Comments
My standard build:
has these few last lines of output:
.
The same problem still happens. The file is not there and Nodej.js dependencies complain about being lower than 10.20. Is there any other environment variable that your automated system is using that I should be aware of? Thank you for your feedback. |
I have just realised that this bug might be a duplicate of #543 . This bug is quite important because you are providing the Debian binary package I wonder myself... At the time of the build Ubuntu 16.04 did not require Node.js to be 12.x and now some weeks later it requires it? Thank you again for your feedback. |
Hello @adriangibanelbtactic, sorry for the late reply. Nodejs in build_tools have been updated to 14 version. Unfortunately we haven't the detailed documentation about compilation process, but i created ticket #64992 for our team to add this. |
Thank you. The main recurrent complaint from the community is that repos here on github are not updated to reflect such changes in a timely manner. |
Building v7.2.2.56 with
NODE_ENV
set toproduction
lacks some files.I happen to set
NODE_ENV
toproduction
so that development dependencies are skipped.I guess that that means that nodejs is not brought down and build it but you use nodejs from the distro itself.
Why? Because I don't want to wait 15 hours for everything to build but 10 hours instead (not sure about the actual hours, it's a wild guess).
The build seems to end well but it does not have:
out/linux_64/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/index.html
file.Your Debian/Ubuntu package for this version does indeed have this file so I guess that your automatic builds are done without setting
NODE_ENV
toproduction
.The build also spits out:
so that's why I suspect about NODE_ENV variable.
Steps to reproduce the problem:
In an empty Debian 11 Netinst machine as a pre-build step I do:
And here there is the interesting build snippet:
and its output (well, not the complete output but some of the last lines of it):
build_tools base repo version: v7.2.2.56
Operating system: Debian 11 but it actually uses whatever default Docker is defining which I think it's Ubuntu 16.04
Compiler version: Whatever the Docker says.
Finally: I have taken a look at develop branch at build_tools and server repos and I haven't seen anything related to this variable so I don't think it has been fixed there either. So this might apply to master or develop branches too.
Additional details:
So, yeah, I think that the code should be fixed/updated so that we can keep building this even if we have
NODE_ENV
set toproduction
.If this is not possible then documentation about
NODE_ENV
behaviour (if that documentation exists) should have a warning that in the current state using the default commands will end in an incomplete build. So, in that regard the documentation should say that it's better, for now, not to setNODE_ENV
toproduction
.I have started a new build exactly the same way as described above but without defining
NODE_ENV
variable.That way I will be able to prove you that
NODE_ENV
is the problem here.I will update you with more details when it finishes but I have a feeling that the build will be ok.
Thank you very much for your feedback!
The text was updated successfully, but these errors were encountered: