Heroku应用程序使用generator-angular-fullstack失败构build

我使用sudo grunt build我的应用程序。 没有错误。 dist文件夹是build立的,应用程序使用sudo grunt serve:dist 。 当我第一次尝试部署到heroku时,使用项目根目录下yo angular-fullstack:heroku失败。

我收到以下错误:

 Initializing deployment repo Creating heroku app and setting node environment Creating myapp... done, stack is cedar-14 https://myapp.herokuapp.com/ | https://git.heroku.com/myapp.git { [Error: Command failed: ! No app specified. ! Run this command from an app folder or specify which app to use with --app APP. ] killed: false, code: 1, signal: null }` 

我也尝试遵循http://davemax.com/heroku-deploy-yeoman-angular-app/和https://devcenter.heroku.com/articles/getting-started-with-nodejs上的手动构build说明。 当我使用这些方法部署应用程序时,URL显示一个heroku错误页面。

我的服务器是HTTPS服务器,所以我不确定这是干扰什么。

来自app.js:

 var options = { pfx: fs.readFileSync(__dirname + '/server.pfx'), passphrase: 'password' }; // Setup server var app = express(); var server = require('https').createServer(options, app); 

我正在使用最新版本的generator-angular-fullstack:版本2.0.13。 我也在使用最新版本的heroku工具带:版本3.28.2。 我在Linux机器上,Ubuntu的。

我为我的网站使用了发电机 – angular – 满塔,它完美的工作。

我使用git bash,我有我的heroku帐户( https://devcenter.heroku.com/articles/authentication

我总是使用:

 $grunt build $grunt buildcontrol:heroku 

我想成为你的帮助。