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?
such as
mina nginx:reload,mina nginx:stopactions, they need input the password to run, but it never prompt, just hanging;if I add
set :execution_mode, :systemto the deploy file, these actions works well;but when I runmina nginx:print, it reports errorswhat's wrong with my config?