javascript - scroll bar not working after deploying node js applcation on google app engin -


i working on google app engine. working on heroku have deployed node js app. have deployed node js app on gae. after deployment, weird problem occur. in pages not scroll , stuck on 1 page. works fine locally on heroku. here package.json file

 "name": "temporary",   "version": "0.0.0",   "angular-cli": {},   "scripts": {     "deploy": "gcloud app deploy",     "ng": "ng",     "start": "node server.js",     "test": "ng test",     "postinstall": "ng build ",     "pree2e": "webdriver-manager update --standalone false --gecko false",     "e2e": "protractor"   },   "engines": {     "node": "6.10.0",     "npm": "5.1.0"   },      "dependencies": {     "express": "4.15.3", }   "devdependencies": {     "@google-cloud/nodejs-repo-tools": "1.4.16", } 

and app.yaml file is

# [start app_yaml] runtime: nodejs env: flex # [end app_yaml] 

and server.js is

const express = require('express'); const app = express(); // run app serving static files // in dist directory app.use(express.static(__dirname + '/dist')); // start app listening on default // heroku port app.listen(process.env.port || 8080);  const forcessl = function() {   return function (req, res, next) {     if (req.headers['x-forwarded-proto'] !== 'https') {       return res.redirect(        ['https://', req.get('host'), req.url].join('')       );     }     next();   } } // instruct app // use forcessl // middleware app.use(forcessl());  const path = require('path'); // ... // requests, send index.html // pathlocationstrategy can used app.get('/*', function(req, res) {   res.sendfile(path.join(__dirname + '/dist/index.html')); }); 

here link of gae. can check live.

[https://shopnroar-frontend.appspot.com/][1]

can tell me problem code.

i have wasted lot of time on problem. thankful favor.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -