无法加载资源:服务器在angular.js中的状态为404(未find)

我创build了一个war文件,并试图将其部署在bluemix上。

App.js

var express = require("express"); var app = express(); var path = require("path"); app.use("/", express.static(__dirname)); app.get('/', function(req, res) { res.sendFile(path.join(__dirname + '/ingestion-scala-apidocs/index.html')); }); app.set('port', process.env.PORT); console.log(port); 

manifest.yml

 applications: - name: connectors path: connectors.war memory: 900M instances: 1 host: connectors domain: mybluemix.net 

推到bluemix并点击主机名后,我得到以下错误:

 Failed to load resource: the server responded with a status of 403 (Forbidden) Failed to load resource: the server responded with a status of 404 (Not Found)