Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start PTMagic with pm2 #41

Closed
azenator opened this issue Feb 19, 2018 · 6 comments
Closed

How to start PTMagic with pm2 #41

azenator opened this issue Feb 19, 2018 · 6 comments

Comments

@azenator
Copy link

azenator commented Feb 19, 2018

Hey folks,

you can start the bot using pm2 with the following File:

pm2.PTMagic.json

{
  "apps": [
    {
      "name": "PTMagic",
      "cwd": ".",
      "script": "PTMagic.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": false
    }
  ]
}

Now the Monitor:

pm2.PTM-Monitor.json:

{
  "apps": [
    {
      "name": "PTM-Monitor",
      "cwd": ".",
      "script": "Monitor/Monitor.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": false
    }
  ]
}

Put both files in the PTMagic dir and start the processes with:
pm2 start pm2.PTMagic.json
pm2 start pm2.PTM-Monitor.json

This might be easier to handle for some people.

Best Regards

@Legedric
Copy link
Owner

Thank you @azenator for posting this! Would it be ok for you when we copy that into our wiki?

@azenator
Copy link
Author

You are most welcome!

@azenator
Copy link
Author

I dont want to open a new Issue. This package

apt-get install aspnetcore-store-2.0.5

is needed for running PTMagic on Linux properly. Could be important to know for Linux users from your Wiki.

@TwixRaider
Copy link
Collaborator

Thanks a lot. Updated the Linux Guide with this info...

@Cryptoboss420
Copy link

where do I put these files

@ghost
Copy link

ghost commented May 16, 2018

You put them in the PTMagic folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants