我对Loopback的这种意外行为感到非常困惑。
我从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
我已指定NODE_ENV=test
为什么Loopback仍然加载:
server/config.local.js
和server/datasources.local.js
?
不是那个bug吗?是因为我在字母表中出现之前吗? 似乎错了......
答案 0 :(得分:3)
根据documentation LoopBack总是加载以下配置文件(如果存在):
ovveride func viewWillDisappear(_ animated: Bool) {
manager.stopDeviceMotionUpdates()
}