node.js - App engine nodejs deployment error -
i trying hands-on on google cloud platform, app engine in specific.
for same, i've created simple nodejs application send hello wold message in response.
but unable access endpoint , getting below error
below files:
aap.yaml
runtime: nodejs env: flex
index.js
'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 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 in gcp log, 16:31:59.000 server listening on 443
Comments
Post a Comment