Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forever start index.js
- Error: Server Error
- The server encountered an error and could not complete your request.
- Please try again in 30 seconds.
- const express = require('express');
- const path = require('path');
- const url = require('url');
- var init = function( app, prt ){
- app.listen( prt, () => console.log('LucidNodes listening on port ' , prt ));
- };
- exports.init = init;
- const server = require('./server');
- const fs = require('fs');
- const express = require('express');
- const path = require('path');
- const serveStatic = require('serve-static');
- const serveIndex = require('serve-index');
- const staticPaths = require('./defineStaticPaths');
- const htmlMethods = require('./js/htmlMethods'); // import custom methods for handling HTML
- const app = express();
- const routes = require('./routes');
- staticPaths.defineStaticPaths( app );
- app.use( routes );
- server.init( app, 8080 );
- runtime: nodejs10
- instance_class: F2
- env_variables:
- BUCKET_NAME: "example-gcs-bucket"
- handlers:
- - url: /stylesheets
- static_dir: stylesheets
- - url: /.*
- secure: always
- redirect_http_response_code: 301
- script: auto
- network:
- forwarded_ports:
- - 8080/tcp
Add Comment
Please, Sign In to add comment