You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So (as per #47) I get that you want to make the install "crash hard" when the chmod() call fails, but at least make sure that you call it only when necessary.
In the vast majority of cases the permissions are already correct but your script is crashing the whole composer install just because a different developer (user) ran it than the one who ran it the first time. When this happens on a production system while you desperately need to run all your install scripts, it's really annoying and kind of unacceptable.
The text was updated successfully, but these errors were encountered:
Amunak
changed the title
Check whether the chmod() call is needed
Check whether the chmod() call is needed before calling it
Aug 14, 2018
Amunak
changed the title
Check whether the chmod() call is needed before calling it
Check whether the chmod call is needed before calling it
Aug 14, 2018
In the vast majority of cases the permissions are already correct but your script is crashing the whole composer install just because a different developer (user) ran it than the one who ran it the first time.
This is correct.
When this happens on a production system while you desperately need to run all your install scripts, it's really annoying and kind of unacceptable.
That means that you have no proper deployment process:
no deployment "owner" (user that owns the deployment dir, if any)
deployment process has no rollback system
As I described in #47, I can gladly fix problems when a failing automated test case is provided.
Closing as duplicate: please re-open once a test case is available.
So (as per #47) I get that you want to make the install "crash hard" when the
chmod()
call fails, but at least make sure that you call it only when necessary.In the vast majority of cases the permissions are already correct but your script is crashing the whole
composer install
just because a different developer (user) ran it than the one who ran it the first time. When this happens on a production system while you desperately need to run all your install scripts, it's really annoying and kind of unacceptable.You can use something akin to this:
The text was updated successfully, but these errors were encountered: