我正在尝试将我的AngularJS Yeoman Generator-AngularFire Node Express应用程序部署到Heroku。我能够成功推送到Heroku
Fetching repository, done.
Everything up-to-date
当我git push heroku master
(不完全确定这是否意味着它是安全的,提示检查另一种方式将非常感激)。当我运行命令heroku open
时,我的网页显示
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
我运行了命令heroku logs
我收到了这些错误:
2014-09-27T21:25:11.216896+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mayapp.herokuapp.com request_id=6921ca4b-13de-4194-858f-0132a0d36192 fwd="70.166.121.220" dyno= connect= service= status=503 bytes=
2014-09-27T21:25:11.712742+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp.herokuapp.com request_id=6e6dde3a-ca2a-4650-95c0-c4ad68d7f597 fwd="70.166.121.220" dyno= connect= service= status=503 bytes=
以下是我的routes.js
中的路线config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/login', {
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
})
.otherwise({redirectTo: '/'});
}])
如何通过此问题并成功部署?