如何将uwsgi命令行转换为yaml文件?

时间:2013-03-31 15:42:25

标签: amazon-ec2 flask uwsgi

如何将以下命令放入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

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