Skip to content
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

command with sudo always hang #8

Open
imtinge opened this issue Aug 5, 2017 · 1 comment
Open

command with sudo always hang #8

imtinge opened this issue Aug 5, 2017 · 1 comment

Comments

@imtinge
Copy link

imtinge commented Aug 5, 2017

such as mina nginx:reload, mina nginx:stop actions, they need input the password to run, but it never prompt, just hanging;

if I add set :execution_mode, :system to the deploy file, these actions works well;but when I run mina nginx:print, it reports errors

 mina nginx:print
sh: line 39: echo "-----> Loading rbenv"
export RBENV_ROOT="$HOME/.rbenv"
export PATH="$HOME/.rbenv/bin:$PATH"
if ! which rbenv >/dev/null; then
  echo "! rbenv not found"
  echo "! If rbenv is installed, check your :rbenv_path setting."
  exit 1
fi
eval "$(rbenv init -)"
echo '


upstream koob {
server unix:///home/deploy/site/koob/shared/tmp/puma.sock fail_timeout=0;
}

server {
listen 80 default deferred;
server_name kbook.wenghuaedu.com
root /home/deploy/site/koob/current/public;

location ^~ /assets/ {
  gzip_static on;
  expires max;
  add_header Cache-Control public;
}

try_files $uri/index.html $uri @koob;
location @koob {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_redirect off;
  proxy_pass http://koob;
}

error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
': No such file or directory
 !     Run Error

what's wrong with my config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants