Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新docker 版 v0.9.1 环境变量不生效 #39

Closed
liuyl1992 opened this issue Mar 10, 2022 · 8 comments
Closed

最新docker 版 v0.9.1 环境变量不生效 #39

liuyl1992 opened this issue Mar 10, 2022 · 8 comments

Comments

@liuyl1992
Copy link

最新docker 版 v0.9.1 环境变量不生效,数据库驱动设置mysql 后,用yao命令查看变量是生效了,但是运行日志显示完全没读取环境变量

@trheyi
Copy link
Contributor

trheyi commented Mar 10, 2022

具体的错误日志是信息是?

cd /data/app
yao inspect

@liuyl1992
Copy link
Author

具体的错误日志是信息是?

cd /data/app
yao inspect

没有任何错
企业微信截图_16469690199752

@trheyi
Copy link
Contributor

trheyi commented Mar 14, 2022

driver 显示是 sqlite3 cat .env 的配置是?

@liuyl1992
Copy link
Author

driver 显示是 sqlite3 cat .env 的配置是?

driver 显示是 sqlite3 cat .env 的配置是mysql

@trheyi
Copy link
Contributor

trheyi commented Mar 17, 2022

如果当前目录下的 .env 是 MySQL ,yao inspect 的结果应该一致,可以检查一下环境变量名称是否正确。

@liuyl1992
Copy link
Author

如果当前目录下的 .env 是 MySQL ,yao inspect 的结果应该一致,可以检查一下环境变量名称是否正确。
名称一定没问题的,但yao就是始终默认production
image

@41668895
Copy link

image
image

@liuyl1992
Copy link
Author

liuyl1992 commented Mar 25, 2022

那文档说的要优化,都以为是linux的环境变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants