1
Google Cloud Platform、App Engineで実践しています。アプリエンジンノードのデプロイメントエラー
私は単純なnodejsアプリケーションを作成しました。このアプリケーションでは、Hello Woldというメッセージが返信されます。
しかし、私はエンドポイントにアクセスすることができませんし、以下の以下のエラーを取得
が私のファイルです:
index.jsaap.yaml
runtime: nodejs
env: flex
'use strict'; const http = require('http'); const port = 443; const requestHandler = (request, response) => { console.log(request.url); response.end('Hello Node.js Server!'); } const server = http.createServer(requestHandler); server.listen(port, (err) => { if (err) { return console.log('something bad happened', err) } console.log(`server is listening on ${port}`) });
package.json
{
"name": "test-pro-for-gcm",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"deploy": "gcloud app deploy",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
UPDATE 1 GCPログには、HTTPリクエストを受信します16:31:59.000 server is listening on 443
ねえ、私は土曜日から同じエラーが発生しています。うまくいけば、私たちはフィードバックを得るここでスレッドを見ています。 –
私は自分でこのアプリケーションを作成してエラーが発生しました。今、私はhello-worldデモアプリケーションをデプロイしています。期待通りに動作しています。デモはこちらからダウンロードできます。https://codeload.github.com/GoogleCloudPlatform/nodejs-docs-samples/zip/master – dearvivekkumar