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 enter image description here

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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -