Can I use PM2 with discourse (docker)?

(Ajay Pal Singh) #1

How can I use PM2 with discourse (docker) ?

(Sam Saffron) #2

pm2 seems heavily geared at node.js and Discourse runs on Ruby, not sure if you would even get any useful metrics from it. that said you could create a template that lays down the runit service for it if your really wanted.

(Ajay Pal Singh) #3

Thanks @sam
Could you please tell what is the way to run discourse forever ?

(Jeff Atwood) #4

Try our 30 minute install

(Ajay Pal Singh) #5

I was able to install it without any issue. My question was, if it
terminates, us there a way to restart by itself

(Jeff Atwood) #6

Docker handles all this automatically, if you mean the server is rebooted. Can you be more specific?

(Sam Saffron) #7

Our docker image uses runit, a battle tested super robust init system, it will restart unicorn/nginx etc if they crash

(Ajay Pal Singh) #8

That works for me

I really really love what you guys have built.
I have been sharing it with friends around and planning to use it in few
websites. So wanted to be sure it won’t die on me .