ColeBennett / binance-auto-blacklist

Automatically disables trading for new Binance listings in ProfitTrailer
34 stars 6 forks source link

Run in PM2 ? #11

Closed ingeniumdesign closed 6 years ago

ingeniumdesign commented 6 years ago

Hi, thanks for the nice Plugin. I need to run the "java -jar ProfitTrailer-blacklist.jar" on the pi3, but my ProfitTrailer run in the PM2 Mode. Can i run the blacklist in the PM2 too ? command: "pm2 start ProfitTrailer-blacklist.jar" ?

or i dont need it?

thanks for help

ingeniumdesign commented 6 years ago

i add a new file: pm2-Blacklist.json

{
  "apps": [
    {
      "name": "profit-trailer Blacklist",
      "cwd": ".",
      "script": "java",
      "args": [
        "-jar",
        "ProfitTrailer-blacklist.jar"
      ],
      "env": {
        "SPRING_PROFILES_ACTIVE": "prod"
      },
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "",
      "exec_mode": "fork",
      "autorestart": false
    }
  ]
}

now i start the "pm2 start pm2-Blacklist.json" => "pm2 save"

is this code ok?

Vicentewnunes commented 6 years ago

That worked? Need to run it on a Ubuntu VPS..

ingeniumdesign commented 6 years ago

for me perfect!