我有一个基于这个https://github.com/jcalazan/ansible-django-stack的ansible配置VM 但由于某种原因尝试启动Gunicorn会出现以下错误:
无法连接到/path/to/my/gunicorn.sock
并在nginx日志文件中:
连接到上游时connect()到unix:/path/to/my/gunicorn.sock失败(2:没有这样的文件或目录)
实际上,指定目录中缺少套接字文件.我已经检查了目录的权限,他们没事.
这是我的gunicorn_start脚本:
NAME="{{ application_name }}"
DJANGODIR={{ application_path }}
SOCKFILE={{ virtualenv_path }}/run/gunicorn.sock
USER={{ gunicorn_user }}
GROUP={{ gunicorn_group }}
NUM_WORKERS={{ gunicorn_num_workers }}
# Set this to 0 for unlimited requests. During development, you might want to
# set this to 1 to automatically restart the process on each request (i.e. your
# code will be reloaded on every request).
MAX_REQUESTS={{ gunicorn_max_requests }}
echo "Starting $NAME as `whoami`"
# Activate the virtual environment.
cd $DJANGODIR
. …Run Code Online (Sandbox Code Playgroud) 是否有一个选项可以抑制在 Phing 中执行目标时显示的默认输出。我有一个
<foreach param="my_param" absparam="my_abs_param" target="my-target">
<fileset dir="www">
<include name="lots-of-files-here" />
</fileset>
</foreach>
Run Code Online (Sandbox Code Playgroud)
目标对每个目录进行简单检查,其输出根本没有用,但打印大量消息告诉 my-target 被调用:
> my-target:
[foreach] Calling Buildfile 'build.xml' with target 'my-target'.
Run Code Online (Sandbox Code Playgroud)
有没有办法禁用该输出?