{"action":"created","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/719","repository_url":"https://api.github.com/repos/deployphp/deployer","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/719/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/719/events","html_url":"https://github.com/deployphp/deployer/issues/719","id":165958761,"number":719,"title":"stdin: command not found on deploy","user":{"login":"ethanclevenger91","id":2623646,"avatar_url":"https://avatars.githubusercontent.com/u/2623646?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanclevenger91","html_url":"https://github.com/ethanclevenger91","followers_url":"https://api.github.com/users/ethanclevenger91/followers","following_url":"https://api.github.com/users/ethanclevenger91/following{/other_user}","gists_url":"https://api.github.com/users/ethanclevenger91/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanclevenger91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanclevenger91/subscriptions","organizations_url":"https://api.github.com/users/ethanclevenger91/orgs","repos_url":"https://api.github.com/users/ethanclevenger91/repos","events_url":"https://api.github.com/users/ethanclevenger91/events{/privacy}","received_events_url":"https://api.github.com/users/ethanclevenger91/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-17T03:42:45Z","updated_at":"2016-11-28T06:15:13Z","closed_at":"2016-07-19T07:36:53Z","body":"| Q | A |\n| --- | --- |\n| Issue Type | Bug |\n| Deployer Version | 3.3.0 |\n| Local Machine OS | Windows 10 |\n| Remote Machine OS | Linux (WHM/cPanel) |\n### Description\n\nI've set up a new site to deploy via this script and I'm getting an error on `dep deploy production`:\n\n```\n  [RuntimeException]\n  stdin: is not a tty\n  bash: stdin:: command not found\n```\n### Steps to reproduce\n1. Set up site using the below `deploy.php` file\n2. Run `dep deploy production`\n### Content of `deploy.php`\n\n``` php\n<?php\n/*\n * This file has been generated automatically.\n * Please change the configuration for correct use deploy.\n */\n\nrequire 'recipe/wordpress.php';\n\n// Set configurations\nset('repository', 'git@domain.com:ethanclevenger91/l***k.git'); //private repo\nset('shared_files', []);\nset('shared_dirs', ['wp-content/uploads']);\nset('writable_dirs', ['wp-content/uploads']);\n\n// Configure servers\nserver('production', 'l***k.com')\n    ->user('l***k')\n    ->password('f***e')\n    ->env('deploy_path', '/home/l***k/public_html');\n\nserver('beta', 'beta.domain.com')\n    ->user('username')\n    ->password()\n    ->env('deploy_path', '/var/www/beta.domain.com');\n\n/**\n * Restart php-fpm on success deploy.\n */\ntask('php-fpm:restart', function () {\n    // Attention: The user must have rights for restart service\n    // Attention: the command \"sudo /bin/systemctl restart php-fpm.service\" used only on CentOS system\n    // /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service\n    run('sudo /bin/systemctl restart php-fpm.service');\n})->desc('Restart PHP-FPM service');\n\nafter('success', 'php-fpm:restart');\n\n/**\n * Main task\n */\ntask('deploy', [\n    'deploy:prepare',\n    'deploy:release',\n    'deploy:update_code',\n    'deploy:shared',\n    'deploy:writable',\n    'deploy:symlink',\n    'cleanup',\n])->desc('Deploy your project');\n\nafter('deploy', 'success');\n\n```\n### Output log\n\n```\n➤ Executing task deploy:prepare\n↳ on [production]\n> echo $0\n< stdin: is not a tty\n< bash\n<\n> if [ ! -d /home/l***k/public_html ]; then mkdir -p /home/l***k/public_html; fi\n< stdin: is not a tty\n<\n> if [ ! -L /home/l***k/public_html/current ] && [ -d /home/l***k/public_html/current ]; then echo true; fi\n< stdin: is not a tty\n<\n> cd /home/l***k/public_html && if [ ! -d releases ]; then mkdir releases; fi\n< stdin: is not a tty\n<\n> cd /home/l***k/public_html && if [ ! -d shared ]; then mkdir shared; fi\n< stdin: is not a tty\n<\n• done on [production]\n✔ Ok [2s 506ms]\n➤ Executing task deploy:release\n↳ on [production]\n> if [ -d /home/l***k/public_html/releases/20160717032918 ]; then echo 'true'; fi\n< stdin: is not a tty\n<\n> mkdir /home/l***k/public_html/releases/20160717032918\n< stdin: is not a tty\n<\n> cd /home/l***k/public_html && if [ -h release ]; then rm release; fi\n< stdin: is not a tty\n<\n> ln -s /home/l***k/public_html/releases/20160717032918 /home/l***k/public_html/release\n< stdin: is not a tty\n<\n• done on [production]\n✔ Ok [1s 231ms]\n➤ Executing task deploy:update_code\n↳ on [production]\n> which git\n< stdin: is not a tty\n< /usr/local/bin/git\n<\n> stdin: is not a tty\n/usr/local/bin/git version\n< stdin: is not a tty\n< bash: stdin:: command not found\n< git version 2.8.2\n<\n> find /home/l***k/public_html/releases -maxdepth 1 -mindepth 1 -type d\n< stdin: is not a tty\n< /home/l***k/public_html/releases/20160717032458\n< /home/l***k/public_html/releases/20160717032918\n<\n> readlink /home/l***k/public_html/release\n< stdin: is not a tty\n< /home/l***k/public_html/releases/20160717032918\n<\n> stdin: is not a tty\n/usr/local/bin/git clone  --recursive -q --reference /home/l***k/public_html/releases/20160717032458 --dissociate git@domain.com:ethanclevenger91/l***k.git  stdin: is not a tty/home/l***k/public_html/releases/20160717032918 2>&1\n> stdin: is not a tty\n/usr/local/bin/git clone  --recursive -q git@domain.com:ethanclevenger91/l***k.git stdin: is not a tty/home/l***k/public_html/releases/20160717032918 2>&1\n\n\n  [RuntimeException]\n  stdin: is not a tty\n  bash: stdin:: command not found\n\n\nException trace:\n () at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\Server\\Remote\\PhpSecLib.php:124\n Deployer\\Server\\Remote\\PhpSecLib->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\functions.php:296\n run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\recipe\\common.php:204\n {closure}() at n/a:n/a\n call_user_func() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\Task\\Task.php:79\n Deployer\\Task\\Task->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\Executor\\SeriesExecutor.php:43\n Deployer\\Executor\\SeriesExecutor->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\Console\\TaskCommand.php:82\n Deployer\\Console\\TaskCommand->execute() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Command\\Command.php:256\n Symfony\\Component\\Console\\Command\\Command->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:841\n Symfony\\Component\\Console\\Application->doRunCommand() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:189\n Symfony\\Component\\Console\\Application->doRun() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\symfony\\console\\Application.php:120\n Symfony\\Component\\Console\\Application->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\src\\Deployer.php:101\n Deployer\\Deployer->run() at C:\\Users\\ethan_000\\AppData\\Roaming\\Composer\\vendor\\deployer\\deployer\\bin\\dep:64\n\ndeploy [-p|--parallel]\n\n```\n"},"comment":{"url":"https://api.github.com/repos/deployphp/deployer/issues/comments/263191440","html_url":"https://github.com/deployphp/deployer/issues/719#issuecomment-263191440","issue_url":"https://api.github.com/repos/deployphp/deployer/issues/719","id":263191440,"user":{"login":"elfet","id":141232,"avatar_url":"https://avatars.githubusercontent.com/u/141232?v=3","gravatar_id":"","url":"https://api.github.com/users/elfet","html_url":"https://github.com/elfet","followers_url":"https://api.github.com/users/elfet/followers","following_url":"https://api.github.com/users/elfet/following{/other_user}","gists_url":"https://api.github.com/users/elfet/gists{/gist_id}","starred_url":"https://api.github.com/users/elfet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elfet/subscriptions","organizations_url":"https://api.github.com/users/elfet/orgs","repos_url":"https://api.github.com/users/elfet/repos","events_url":"https://api.github.com/users/elfet/events{/privacy}","received_events_url":"https://api.github.com/users/elfet/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T06:15:13Z","updated_at":"2016-11-28T06:15:13Z","body":"#910"}}
{"actor":{"display_login":"elfet"}}