-
Notifications
You must be signed in to change notification settings - Fork 138
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
server目录下env问题(环境变量问题解答) #5
Comments
启动之后会把.env和.env.dev合并成一个env文件放到dist里面,然后index去读取.env |
那第二个问题呢? |
了解,但是还是有个疑问点,index里面引入的.env ,根目录下是没有的,这个怎么解释? |
因为server中涉及到七牛云的key,所以才使用了这个方法,有空的话可能会使用git hook来解决 |
看到你的截图我就知道了,master上你没有上传.env 文件,感谢您的答疑解惑 |
没事的,感兴趣的话可以点个star |
哈哈,没问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
两个问题:
1,入口index里面配置dotenv,看引入路径是引入的其实是根目录下的.env文件,但其实master上面根目录没有这个文件;
2,script里面dev下的index,为什么要read 一下env目录下的env.template文件,最后又去write进原文件?
The text was updated successfully, but these errors were encountered: