我试图将我的ionic2项目(作为网络应用程序)推送到Heroku,部署还可以,但是当我访问该应用程序时,我有一个带有&#的空白页面34;不能GET /"。
我有一个快速服务器,一个正确的Procfile,但我认为www /不是基于部署构建的。实际上,如果我在我的推送中包含我的www /文件夹,那么网络应用程序运行...(但我不想在我的www /文件夹中进行版本控制)。
在这里,我的package.json。我做错了什么?谢谢 !
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"main": "server.js",
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve",
"start": "node server.js"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.6",
"angular2-jwt": "^0.1.27",
"auth0-lock": "^10.7.3",
"express": "^4.14.1",
"ionic-angular": "2.0.0-rc.4",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "^1.0.0",
"typescript": "2.0.9",
"sw-toolbox": "3.4.0"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "deals: An Ionic project"
}