deployer randomly asks for password #3789
-
Settings: If i manually do But when deploy.php runs the following command: task('deploy:npm_vendors', function () {
run('sudo docker run -v /var/www:/var/www -w {{release_path}} node:18 npm install');
});
task('deploy:npm_build', function () {
run('sudo docker run -v /var/www:/var/www -w {{release_path}} node:18 npm run build');
}); If i manually run both commands, they work. If i use deployer:
Why? I don't know what to try to stop it from asking the password :S |
Beta Was this translation helpful? Give feedback.
Answered by
psociety
Mar 16, 2024
Replies: 1 comment
-
Found out what causes it, if the command fails, like the build having an error, deployer asks for the password. Looks like deployer confuses the error output as if sudo failed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
psociety
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found out what causes it, if the command fails, like the build having an error, deployer asks for the password. Looks like deployer confuses the error output as if sudo failed.
So it's a bug that won't happen as long as the command doesn't produce an error.