-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Set return code for SetModeCommand #4845
Conversation
In case of running the `bin/magento deploy:mode:set production` command in a shell script this will return an error code 129 and all other commands after this will not be executed.
Internal ticket: MAGETWO-58373 |
Hi Marvin, -- Anton Guz |
Hi @guz-anton, The script includes different steps:
And if the command returns the wrong status code the script stops and the appended task will not execute. |
Hmm.. I understand what is a shell script (or no?). For example: #!/bin/bash
sudo -H -u www-data php bin/magento deploy:mode:set production
sudo -H -u www-data php bin/magento deploy:mode:set developer
sudo -H -u www-data php bin/magento deploy:mode:set default
touch sample.test.file
pwd
pwd
ls -la I have successful directory listing in both cases: with your changes and without. So I want to understand when exactly you faced with issue. Could you list your |
you have to use #!/bin/bash
set -e
php bin/magento deploy:mode:set production |
@mc388 great thanks for contribution! |
@mmansoorebay @guz-anton is this PR going to be included in 2.1.3? |
[TSG] Fixes for 2.3 (pr76) (2.3-develop)
In case of running the
bin/magento deploy:mode:set production
commandin a shell script this will return an error code 129 and all other
commands after this will not be executed.