How I could restart the web server in docker

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

@sam

This seems to work for me:

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.

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

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

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

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?

/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?

C’è un pulsante per riavviare il server dall’interfaccia utente? Vedo un pulsante per l’aggiornamento quando esce una nuova versione, che credo esegua un riavvio, ma non vedo un pulsante dedicato solo al riavvio.

Non c’è, no. Perché devi riavviare il server web? Quale problema stai cercando di risolvere?

Volevo riavviare il server per vedere se le modifiche al file app.yml venivano applicate. Immagino che serva anche una ricompilazione. Forse sarebbe comodo aggiungere un pulsante nell’interfaccia (vicino alla sezione di aggiornamento dell’amministratore) per farlo.

La maggior parte delle modifiche al file app.yml richiede una ricompilazione. Le ricompilazioni non possono essere avviate dall’interfaccia utente; è necessario connettersi direttamente al server, al di fuori del contenitore Docker.

Impostazioni come SMTP possono essere aggiornate nel file yml e verranno rilevate immediatamente tramite:

./launcher destroy app
./launcher start app

Mentre altre cose, inclusi i plugin, richiederanno una ricostruzione.