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?

Y a-t-il un bouton pour redémarrer le serveur depuis l’interface utilisateur ? Je vois un bouton pour mettre à niveau lorsqu’une nouvelle version est disponible, ce qui, je pense, entraîne un redémarrage, mais je ne vois pas de bouton dédié uniquement au redémarrage.

Il n’y en a pas, non. Pourquoi devez-vous redémarrer le serveur web ? Quel est le problème que vous essayez de résoudre ?

Je voulais redémarrer le serveur pour voir si les modifications apportées à app.yml seraient prises en compte. Je suppose qu’une reconstruction est également nécessaire. Peut-être qu’un bouton dans l’interface utilisateur (près de la section de mise à niveau de l’administration) serait également pratique.

La plupart des modifications apportées à app.yml nécessitent une reconstruction. Les reconstructions ne peuvent pas être déclenchées depuis l’interface utilisateur ; vous devez vous connecter directement au serveur, en dehors du conteneur Docker.

Des paramètres tels que SMTP peuvent être mis à jour dans le fichier yml et seront immédiatement pris en compte via :

./launcher destroy app
./launcher start app

Tandis que d’autres éléments, y compris les plugins, nécessiteront une reconstruction.