Skip to content

Instantly share code, notes, and snippets.

@ikbelkirasan
Created June 18, 2017 18:08
Show Gist options
  • Select an option

  • Save ikbelkirasan/4301249f189738c5f0cc6c62e8c1eb1a to your computer and use it in GitHub Desktop.

Select an option

Save ikbelkirasan/4301249f189738c5f0cc6c62e8c1eb1a to your computer and use it in GitHub Desktop.
example laravel-echo-server pm2 configuration

echo.json:

{
  "name": "echo",
  "script": "laravel-echo-server",
  "args": "start"
}

command:

pm2 start echo.json
@anddyyao

Copy link
Copy Markdown

int windows,got error:

C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM\LARAVEL-ECHO-SERVER.CMD:1
(function (exports, require, module, __filename, __dirname) { @if EXIST "%~dp0\node.exe" (
^

SyntaxError: Invalid or unexpected token
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\lib\ProcessContainerFork.js:73:21)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment