-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Documentation is missing an important step! #8690
Comments
Hi @Eddcapone. Thank you for your report. Please, add a comment to assign the issue:
|
Hi @Eddcapone, I think you have misunderstood what all these commands do based on incorrect comments in magento/magento2#32149 unfortunately.
What most people do in their deploy scripts, it to deploy Magento to a new empty directory on a server each time and when the deploy is finished, create a symlink from the document root to that new release. That way you don't need to clean up some directories yourself because you started from a blank slate. We have been asking to the devdocs team to document something like that but that issue got closed with an incorrect reason: #419. |
Then why does the documentation says I need to execute it? Look at Step 4.
I followed the instructions to create the build server. |
Because it is needed to generate php files which are needed on production. The step is definitely needed, it's just not used for generating static assets (which is what you were asking for in your opening post).
The documentation assumes you are running this in a clean environment (you start from an empty directory) but doesn't explicitly mention this. Maybe that can get added to make the documentation clearer?
You also need Also, maybe this comment can help: magento/magento2#29570 (comment) |
This is not true, there is no mention of this in the Assumptions section. Look here.
Am I correct with my assumption that I need to execute I tested it by delting the static content before recompiling, instead of executing |
That's why I said:
It's a bit too complicated to explain, but sometimes you don't need to execute
Good to hear this 🙂 |
The only confuse me is in here command setup:upgrade is optional depend on scenario. Yes i agreed with hostep here. When we change something in config or install new module. |
I have no personal experience with a build server since we build on the same server as where we publishing the new version of our code. But I'm very confident that a true build server (as they assume you have in that documentation) doesn't need access to the database. You only need database access when you publish new code to the server which actually runs the code. It has something to do with storing store-related config data in you |
I understand you, I could just create two deploy scripts, one without and one with the statement and only use the setup one if I install/remove/update extensions.
Oh sorry, my fault |
Seem docs have updated can you recheck that ? Give docs team a feedback on new content |
@magento I am working on this |
General issue
Description:
Feedback on page: /guides/v2.4/config-guide/deployment/pipeline/example/shared-configuration.html
I was running into what I thought was a bug and created an issue, because the documentation does miss a very important step.
In Step 3 it says that we have to execute:
It misses the information that you need to execute
php bin/magento setup:upgrade
beforephp bin/magento setup:di:compile
. This can lead to style changes not getting detected and compiled.Possible solutions:
Add missing step
The text was updated successfully, but these errors were encountered: