利用qq邮箱作为个人邮件服务器发送邮件
socketio与apscheduler并用

docker运行gunicorn看不到控制台输出

妙音 posted @ 2019年4月06日 07:59 in python with tags docker flask websocket gunicorn , 3637 阅读

问题描述

 
项目做成了docker镜像, 以gunicorn命令运行, print输出为什么没有写到docker日志?
 
<!--more-->
 
* docker-compose文件如下
 
version: '2'
services:
  xxx.xxx:
    image: xxx:1.0
    volumes:
        - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
        - ./log/xxx:/var/log/xxx
        - ./xxx:/app
    ports:
      - "5000:5000"
    environment:
      - FLASK_ENV=development_wyq
    command: gunicorn --worker-class eventlet -w 1 xxx:app -b 0.0.0.0:5000      # print不写到控制台
    #command: gunicorn --worker-class eventlet -w 1 xxx:app -b 0.0.0.0:5000 --access-logfile -   #print写到控制台
 
 

解决方法

 
在命令上加上"--access-logfile -"
 
来源 
 
此生必看的科学实验-水知道答案
《了凡四训》详解之改过之法
印光大师十念法(胡小林主讲第1集)
精神病为什么治不好
百病之源
 
Avatar_small
Zeeworld 说:
2019年9月02日 01:36

This is a brilliant blog! I'm very happy with the comments!..

Avatar_small
Bitcoin Price 说:
2019年9月23日 01:27

Good to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share.

Avatar_small
f88tw 说:
2019年10月27日 11:11

敬启者:个人小网站希望大家多多支持 感谢您对我们热心的支持 f88tw┃华歌尔┃I appreciate your kind assistance. http://mypaper.pchome.com.tw/f88tw/P1 http://mypaper.pchome.com.tw/f88tw/post/1379131888 http://mypaper.pchome.com.tw/f88tw/post/1370781143|墓园|禁忌|捡骨师|新竹|台北|桃园|苗栗|头份|

Avatar_small
f88tw┃华歌尔 说:
2019年12月28日 08:43

敬启者:个人小网站希望大家多多支持 感谢您对我们热心的支持 f88tw┃华歌尔┃I appreciate your kind assistance. f88tw|墓园|捡骨流程|捡骨费用|捡骨时间|禁忌|捡骨颜色|捡骨师|新竹|时间|台北|桃园|苗栗|头份|火化|晋塔|安葬|法事|捡骨|看日子|墓穴|墓园|坟墓

Avatar_small
Barbers Birmingham 说:
2020年1月05日 23:22

have you seen those Thriller Video with the prison inmates, geez those are very nice’

Avatar_small
토토 说:
2020年1月05日 23:22

Thanks for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more clear from this post. I’m very glad to see such great information being shared freely out there.

Avatar_small
Fitzrovia barbers 说:
2020年1月30日 15:26

I was also reading a topic like this one from another site.`’”:;

Avatar_small
Facepainting 说:
2020年3月01日 17:38

certainly like your website but you have to check the spelling on quite a few of your posts. A number of them are rife with spelling problems and I find it very troublesome to tell the truth nevertheless I’ll certainly come back again.

Avatar_small
더킹카지노 说:
2020年3月01日 17:38

I keep listening to the rumor lecture about receiving free online grant applications so I have been looking around for the top site to get one. Could you tell me please, where could i acquire some?

Avatar_small
exotic car rental 说:
2020年3月06日 16:19

Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.

Avatar_small
Digital_Zone 说:
2020年3月10日 20:55

Cool stuff you have got and you keep update all of us. matka boss

Avatar_small
Digital_Zone 说:
2020年3月10日 20:58

We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. boss matka

Avatar_small
예스카지노 说:
2020年3月17日 19:46

Spot on with this write-up, I really suppose this website needs much more consideration. I’ll in all probability be again to learn much more, thanks for that info. [Reply]

Avatar_small
더킹카지노 说:
2020年3月17日 19:46

Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles .

Avatar_small
CBD oil 说:
2020年3月22日 23:44

Sometimes, blogging is a bit tiresome specially if you need to update more topics.“:”*

Avatar_small
recover data 说:
2020年3月24日 06:47

Hacking is not a crime, contrary to what you may have heard, Ethical Hacking can have some very positive outcomes. True hackers have helped build most of the technology you use today. We are the only most efficient hacker for hire company with more satisfied clients than we can count. Our mission is to connect people with extraordinary skills and strong morals with individuals and companies that need them.
Hire a tech expert to back up or recover data

Avatar_small
https://royalcbd.com 说:
2020年3月29日 13:29

Sometimes your blog is loading slowly, better find a better host..:~-.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter