作者:syingjin | 来源:互联网 | 2023-05-18 09:14
IamveryconfusedbythisunexpectedbehaviorfromLoopback.我对Loopback的这种意外行为感到非常困惑。Ihavethis
I am very confused by this unexpected behavior from Loopback.
我对Loopback的这种意外行为感到非常困惑。
I have this logged from my Loopback server:
我从我的Loopback服务器记录了这个:
SFOC02Q106HG8WM:crucible-poc-discovery t_millal$ NODE_ENV=test node .
=> Loopback is loading filename => /Users/t_millal/WebstormProjects/a/crucible-poc-discovery/server/config.local.js
=> Loopback is loading filename => /Users/t_millal/WebstormProjects/a/crucible-poc-discovery/server/config.test.js
=> Loopback is loading filename => /Users/t_millal/WebstormProjects/a/crucible-poc-discovery/server/datasources.local.js
=> Loopback is loading filename => /Users/t_millal/WebstormProjects/a/crucible-poc-discovery/server/get-local-datasources.js
=> Loopback is loading filename => /Users/t_millal/WebstormProjects/a/crucible-poc-discovery/server/datasources.test.js
I have specified NODE_ENV=test
我指定了NODE_ENV = test
why does Loopback still load:
为什么Loopback仍然加载:
server/config.local.js
and server/datasources.local.js
?
server / config.local.js和server / datasources.local.js?
isn't that a bug? Is it simply because l comes before t in the alphabet? Seems wrong...
这不是一个bug吗?是因为我在字母表中出现之前吗?似乎错了......
1 个解决方案