我正试图在gcloud免费试用版(gcp)中部署我的angularjs应用程序。但我得到了下一个错误:
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
我将everithing设置为要部署的nodejs应用程序。我还添加了必要的app.yaml。这是我的app.yaml:
runtime: nodejs12
instance_class: F2
package.json:
{
"name": "myApp",
"private": true,
"version": "0.0.1",
"description": "Assignment: Get nearest charging stations for a specific location.",
"repository": "",
"license": "MIT",
"dependencies": {
"angular": "^1.7.5",
"angular-loader": "^1.7.5",
"angular-route": "^1.7.5",
"html5-boilerplate": "0.0.1"
},
"devDependencies": {
"angular-mocks": "^1.7.5",
"cpx": "^1.5.0",
"http-server": "^0.11.1",
"jasmine-core": "^3.3.0",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "^1.1.2",
"protractor": "^5.4.1"
},
"scripts": {
"update-deps": "npm update",
"postupdate-deps": "npm run copy-libs",
"copy-libs": "cpx \"node_modules/{angular,angular-*,html5-boilerplate/dist}/**/*\" app/lib -C",
"prestart": "npm install",
"start": "http-server -a localhost -p 8000 -c-1 ./app",
"pretest": "npm install",
"test": "karma start karma.conf.js",
"test-single-run": "npm test -- --single-run",
"preupdate-webdriver": "npm install",
"//": "Do not install the Firefox driver to work around https://github.com/angular/webdriver-manager/issues/303.",
"update-webdriver": "webdriver-manager update --gecko false",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor e2e-tests/protractor.conf.js",
"update-index-async": "node --eval \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/lib/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=lib/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\""
}
}
和文件夹:
暂无答案!
目前还没有任何答案,快来回答吧!