部署后,angularjs停止在服务器上工作(生产和登台).错误:[$injector:unpr] Unknown provider: $$isDocumentHiddenProvider <- $$isDocumentHidden <- $$animateQueue <- $animate <- $compile <- $$animateQueue.
我不明白出了什么问题,到最后一次部署它运行良好,现在甚至在回滚错误显示之后.这是我的控制器的一个例子:
function MyController($scope, $http) {
// ...
}
MyController.$inject = ['$scope', '$http'];
Run Code Online (Sandbox Code Playgroud)
请帮我.
我的bower.json
"dependencies": {
//......
"angular": "1.5.6",
"angular-animate": "^1.5.6",
"angular-material": "^1.1.1",
"angular-aria": "^1.5.8"
}
Run Code Online (Sandbox Code Playgroud)
UPD.
另一方面,插入符号更放松.它会将您更新为最新的主要版本(第一个数字).^ 1.2.3将匹配任何1.xx版本,包括1.3.0,但将在2.0.0推迟.我在动画和咏叹调中删除了插入符号.谢谢
我定期收到一个错误:
This site can't be reached.
The webpage at https://example.com/document might be temporarily down or it my have moved permanently to are new web address.
Run Code Online (Sandbox Code Playgroud)
我的网站存储在 AWS 上。我使用导轨 + nginx + 乘客。
Nginx 错误日志:
client intended to send too large body: 3729822 bytes,
client: 172.42.35.54, server: example.com,
request: "POST /document HTTP/1.1", host: "test.example.com",
referrer: "https://test.example.com/document/new"
Run Code Online (Sandbox Code Playgroud)
应用日志:
ActionController::RoutingError (No route matches [GET] "/document")
一段时间后,错误消失。我怀疑这是由于部署造成的,但我不确定。你能告诉我它与什么有关以及如何解决这样的问题吗?
目前我正在将我的应用程序从 AWS 迁移到 Heroku。虽然通配符添加我遇到了问题Apps using ACM are not allowed to have wildcard domains。你能告诉我如何添加通配符吗?我的应用程序处于移动阶段,我的 Dynos 是免费的。另外我想用一个免费的 Dynos 来上演,因为它现在对我来说已经足够了。例如我的域:bar.com 我想要这个:[foo].bar.comfoo可以是任何名称
我要检查,如果两个数组a和b相交。鉴于a = [3, 21]和b = [15, 26530, 21, 3],答案应该是true。给定 如果a = [3, 21]和b = [15, 26530],答案应该是false。
我试过:
a.to_set.intersect?(b.to_set)
Run Code Online (Sandbox Code Playgroud)
但是这个方法需要很长时间。我怎样才能快速做到?