err sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper #3771
-
Hello, I am encountering an issue while using Deployer for provisioning a website. Below is the context and the error I'm receiving: Environment: host('mynane.fr')
->setRemoteUser('ubuntu')
->set('become', 'root')
->set('branch', 'main')
->set('deploy_path', '/var/www/website')
->set('sudo_password', '')
->set('domain', 'mynane.fr')
->set('public_path', 'public')
->set('php_version', '8.2'); Problematic Task: task('provision:website', function () {
// ... (other possible commands)
run("[ -d {{deploy_path}} ] || mkdir {{deploy_path}}");
// ... (other possible commands)
}); Error Received:
It seems the issue is related to using Thank you in advance for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
james2001
Jan 26, 2024
Replies: 1 comment
-
Y take the code on master (remove the It's work |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
james2001
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Y take the code on master
(remove the
set('remote_user', 'deployer');
and addrun("chown -R deployer:deployer {{deploy_path}}");
)It's work