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

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

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

问题描述

 
项目做成了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
Digital_Zone 说:
2020年12月17日 23:00

It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. Crawley Accountants

Avatar_small
Digital_Zone 说:
2020年12月17日 23:11

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. East Grinstead Accountants

Avatar_small
Digital_Zone 说:
2020年12月22日 19:00

Thanks for an interesting blog. What else may I get that sort of info written in such a perfect approach? I have an undertaking that I am just now operating on, and I have been on the lookout for such info. Airconditioning Lommel

Avatar_small
Digital_Zone 说:
2020年12月22日 19:08

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... Webdesign Bilzen

Avatar_small
Digital_Zone 说:
2020年12月22日 19:12

Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. Airconditioning Hasselt

Avatar_small
Digital_Zone 说:
2020年12月22日 19:16

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. Webdesign Diepenbeek

Avatar_small
Digital_Zone 说:
2020年12月22日 19:31

Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive! Airconditioning Genk

Avatar_small
Digital_Zone 说:
2020年12月22日 19:35

I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... webdesign Tongeren

Avatar_small
Digital_Zone 说:
2020年12月22日 19:39

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Airconditioning Neerpelt

Avatar_small
Digital_Zone 说:
2020年12月22日 19:43

Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. Webdesign

Avatar_small
Digital_Zone 说:
2020年12月22日 19:47

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. Airconditioning Bilzen

Avatar_small
Digital_Zone 说:
2020年12月22日 19:58

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. Webdesign bureau

Avatar_small
Digital_Zone 说:
2020年12月22日 20:02

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. Airconditioning As

Avatar_small
Digital_Zone 说:
2020年12月22日 20:08

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also Leads

Avatar_small
Digital_Zone 说:
2020年12月22日 20:12

I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. Airconditioning Sint-Truiden

Avatar_small
Digital_Zone 说:
2020年12月22日 20:16

It is included in my habit that I often visit blogs in my free time, so after landing on your blog. I have thoroughly impressed with it and decided to take out some precious time to visit it again and again. Thanks. Lead generation

Avatar_small
Digital_Zone 说:
2020年12月22日 20:21

Wow, excellent post. I'd like to draft like this too - taking time and real hard work to make a great article. This post has encouraged me to write some posts that I am going to write soon. Airconditioning Mol

Avatar_small
Digital_Zone 说:
2020年12月22日 20:25

nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! Webdesign

Avatar_small
Digital_Zone 说:
2020年12月22日 20:28

You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. Airconditioning Limburg

Avatar_small
Digital_Zone 说:
2020年12月22日 20:40

A great content material as well as great layout. Your website deserves all of the positive feedback it’s been getting. I will be back soon for further quality contents. Lead generation

Avatar_small
Digital_Zone 说:
2020年12月22日 20:52

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers Warmtepomp Limburg

Avatar_small
Digital_Zone 说:
2020年12月22日 20:58

This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. SEO

Avatar_small
Digital_Zone 说:
2020年12月22日 21:03

I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. Airco Antwerpen

Avatar_small
Digital_Zone 说:
2020年12月22日 21:08

Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. Wat is SEO?

Avatar_small
Digital_Zone 说:
2020年12月22日 21:12

Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! Zonnepanelen installateur Antwerpen

Avatar_small
Digital_Zone 说:
2020年12月22日 21:16

It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. SEO website

Avatar_small
Digital_Zone 说:
2020年12月22日 21:20

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Airconditioning Tessenderlo

Avatar_small
Digital_Zone 说:
2020年12月27日 03:27

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! Bodrum Rodos feribot

Avatar_small
Digital_Zone 说:
2020年12月27日 03:35

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! akıllı sehpa modelleri

Avatar_small
AP 7th Class Questio 说:
2023年7月10日 23:51

Commissionerate of School Education Government of Andhra Pradesh is Going to Conduct the 6th, 7th, 8th 9th Class Summative Assessment (SA) and Formative assessment (FA) Examination in the month of September and AP 7th Class Question Paper 2024 February to May Every Year under AP State Govt, APSCERT is Published in the 6th, 7th, 8th 9th Class SA & FA Examination Model Paper at State Official Website and District wise DEO Website wise, Department of School Education is the Largest among the 200 Departments in the State, The Department Focuses on Primary and Secondary Education and arranges to train Teachers.

Avatar_small
www.microsoft.com/l 说:
2023年8月17日 18:54

La activación de su cuenta Xbox es el proceso de vincular su cuenta con su consola Xbox o aplicación Xbox a través de Esto le permite acceder a todas las funciones y beneficios de www.microsoft.com/link xbox ser un usuario de Xbox, como juegos multijugador en línea, descargar y comprar juegos y usar varias aplicaciones en su consola o aplicación. Para activar su cuenta de Xbox, normalmente deberá iniciar sesión en su cuenta en el sitio web o la consola de Xbox con su dirección de correo electrónico y contraseña.Una vez que su cuenta esté activada, puede personalizar su perfil, conectarse con otros jugadores y comenzar a explorar las numerosas funciones de Xbox.


登录 *


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