How I could restart the web server in docker


(Berniegao) #1

by manual installation, I could cease the rails server to reload the config files. Is there something like the rails server within docker?

@sam


(Allen - Watchman Monitoring) #2

This seems to work for me:


(Berniegao) #3

doing so will restart the entire docker container. what I trying to do is to restart the web server without touch the container, such as using “rails server” and then stop it without utilizing docker.


(Sam Saffron) #4

why are you trying to do this, not following at all. Anyway here you go.

cd /var/discourse 
./launcher enter app
sv restart unicorn 

(Jared Smith) #5

should we exit app after this step? I’m so new to this if it wasn’t obvious


(Tom Ruh) #6

I have discourse installed via docker. After upgrading yesterday my discourse has been down. I am trying to run ./launcher enter app
from
/var/www/discourse/
I am getting the error ./launcher: No such file or directory Is there way for me to search the correct directory for this command?


(Stephen) #7

/var/www/discourse doesn’t exist outside the app, if you can see that path you’re already inside discourse.

Type exit - does that end the ssh connection, or bring you back to /var/discourse?