I copied the first example from the readme file, the one thing I changed was serveStatic(process.env.FOLDER). It works for serving static files, but the minute I try to run test.php which simply contains
I get the error File not found. spit out to the client
and with all requests I seem to be getting
(node:21011) UnhandledPromiseRejectionWarning: Error: Primary script unknown
at Readable.<anonymous> (/root/projectgreenland/node_modules/php-fpm/index.js:106:32)
at emitNone (events.js:106:13)
at Readable.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
(node:21011) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21011) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/root/projectgreenland/node_modules/serve-static/index.js:121
next()
^
TypeError: next is not a function
at SendStream.error (/root/projectgreenland/node_modules/serve-static/index.js:121:7)
at emitOne (events.js:116:13)
at SendStream.emit (events.js:211:7)
at SendStream.error (/root/projectgreenland/node_modules/send/index.js:270:17)
at SendStream.onStatError (/root/projectgreenland/node_modules/send/index.js:421:12)
at onstat (/root/projectgreenland/node_modules/send/index.js:727:26)
at FSReqWrap.oncomplete (fs.js:152:21)
I copied the first example from the readme file, the one thing I changed was
serveStatic(process.env.FOLDER). It works for serving static files, but the minute I try to run test.php which simply containsI get the error File not found. spit out to the client
and with all requests I seem to be getting