How to Stop Rails Server inside Discourse Container?


(mabras) #1

Currently I am importing a big forum with limited hardware resources. What I want is to kill rails, redis, and sidekiq servers to make use of the most of the memory while importing the forum.


(Rafael dos Santos Silva) #2

You are doing a import using a docker container? I see people usually do this in a dev environment.

Anyway, inside the docker container you can run:

sv stop unicorn
sv stop redis

(mabras) #3

This will kill sidekiq as well?
Thank you!


(Rafael dos Santos Silva) #4

Yes. Just tested it here.