-
重现步骤docker部署v1.10版本,archery日志里告警:/opt/archery/.env not found 预期外的结果/opt/archery/.env not found 日志文本![image](https://github.com/hhyo/Archery/assets/9590209/bf317447-796a-4bbd-87a8-5f9d719a905d)
[2023-11-10 09:44:05 +0800] [44] [INFO] Listening at: http://127.0.0.1:8888 (44)
[2023-11-10 09:44:05 +0800] [44] [INFO] Using worker: sync
[2023-11-10 09:44:05 +0800] [45] [INFO] Booting worker with pid: 45
[2023-11-10 09:44:05 +0800] [46] [INFO] Booting worker with pid: 46
[2023-11-10 09:44:05 +0800] [47] [INFO] Booting worker with pid: 47
[2023-11-10 09:44:05 +0800] [48] [INFO] Booting worker with pid: 48
2023-11-10 09:44:06,145 - environ.environ - INFO - /opt/archery/.env not found - if you're not configuring your environment separately, check this.
2023-11-10 09:44:06,331 - environ.environ - INFO - /opt/archery/.env not found - if you're not configuring your environment separately, check this.
2023-11-10 09:44:06,351 - environ.environ - INFO - /opt/archery/.env not found - if you're not configuring your environment separately, check this.
2023-11-10 09:44:06,390 - environ.environ - INFO - /opt/archery/.env not found - if you're not configuring your environment separately, check this. 版本1.10.0 部署方式Docker 是否还有其他可以辅助定位问题的信息?比如数据库版本等MySQL: 5.7.26 |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
这个.env有啥影响没?还是说新版本废弃了.evn哇? |
Beta Was this translation helpful? Give feedback.
-
仔细看下部署文档,主要你把.env.list改成.env,内容改成你的信息 |
Beta Was this translation helpful? Give feedback.
-
@lanheader 我直接拉的1.10的镜像呐?没有什么env.list,1.9.1都没这个问题 |
Beta Was this translation helpful? Give feedback.
-
有任何别的异常吗? 这只是个warning吧 |
Beta Was this translation helpful? Give feedback.
-
Line 19 in 90fc156 有读取操作,读不到也就获取系统变量了 |
Beta Was this translation helpful? Give feedback.
-
感觉只是警告,我用docker部署的,通过volume把本地的env文件映射过去了 volumes:
- "./.env:/opt/archery/.env" |
Beta Was this translation helpful? Give feedback.
-
这个问题有后续吗,还是大家都忽略这个报错了?强迫症看上去有点难受啊 |
Beta Was this translation helpful? Give feedback.
Archery/archery/settings.py
Line 19 in 90fc156
有读取操作,读不到也就获取系统变量了