如何将以下命令放入app.yaml文件中。我想知道我做错了什么?
uwsgi --socket 127.0.0.1:3000 --file /home/james/james-api/runserver.py --callable app --processes 2
这是下面的yaml文件:
uwsgi:
socket: 127.0.0.1:3000
python-path: /home/james/james-api/
callable: runserver:app
processes: 2
pidfile: /tmp/uwsgi.pid
daemonize: /var/log/uwsgi.log
master: 1
workers: 2
chmod-socket: 666
auto-procname: 1
答案 0 :(得分:0)
我所要做的就是删除 -
uwsgi:
socket: 127.0.0.1:3000
file: /home/james/james-api/runserver.py
python-path: .
callable: app
processes: 2
master: 1
workers: 2
chmod-socket: 666
auto-procname: 1
pidfile: /tmp/uwsgi.pid
daemonize: /var/log/uwsgi.log