Guest User

Untitled

a guest
Jan 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. forever start index.js
  2.  
  3. Error: Server Error
  4. The server encountered an error and could not complete your request.
  5. Please try again in 30 seconds.
  6.  
  7. const express = require('express');
  8. const path = require('path');
  9. const url = require('url');
  10.  
  11. var init = function( app, prt ){
  12.  
  13. app.listen( prt, () => console.log('LucidNodes listening on port ' , prt ));
  14. };
  15.  
  16. exports.init = init;
  17.  
  18. const server = require('./server');
  19. const fs = require('fs');
  20. const express = require('express');
  21. const path = require('path');
  22. const serveStatic = require('serve-static');
  23. const serveIndex = require('serve-index');
  24. const staticPaths = require('./defineStaticPaths');
  25. const htmlMethods = require('./js/htmlMethods'); // import custom methods for handling HTML
  26. const app = express();
  27. const routes = require('./routes');
  28.  
  29. staticPaths.defineStaticPaths( app );
  30. app.use( routes );
  31.  
  32. server.init( app, 8080 );
  33.  
  34. runtime: nodejs10
  35.  
  36. instance_class: F2
  37.  
  38. env_variables:
  39. BUCKET_NAME: "example-gcs-bucket"
  40.  
  41. handlers:
  42. - url: /stylesheets
  43. static_dir: stylesheets
  44.  
  45. - url: /.*
  46. secure: always
  47. redirect_http_response_code: 301
  48. script: auto
  49.  
  50. network:
  51. forwarded_ports:
  52. - 8080/tcp
Add Comment
Please, Sign In to add comment