# How I could restart the web server in docker

**URL:** https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890
**Category:** Self-hosting
**Created:** [April 24, 2015, 6:12am UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890 "2015-04-24T06:12:04Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![berniegao](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@berniegao](https://meta.discourse.org/u/berniegao)
#### Post date: [April 24, 2015, 6:12am UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/1 "2015-04-24T06:12:04Z")

</div>

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

@sam

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [April 24, 2015, 6:55am UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/2 "2015-04-24T06:55:09Z")

</div>

This seems to work for me:

> [@neil](#):
>
> Restart everything:
> 
> ./launcher stop app  
> ./launcher start app
> 
> (Using restart app doesn’t work for me.)

---

<div class="post-metadata">

### Author: ![berniegao](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@berniegao](https://meta.discourse.org/u/berniegao)
#### Post date: [April 25, 2015, 10:31am UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/3 "2015-04-25T10:31:54Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 29, 2015, 5:53am UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/4 "2015-04-29T05:53:27Z")

</div>

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

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

```

---

<div class="post-metadata">

### Author: ![Jared\_Smith1](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jared\_Smith1](https://meta.discourse.org/u/Jared_Smith1)
#### Post date: [March 30, 2016, 6:50pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/5 "2016-03-30T18:50:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![SpaceMonkey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spacemonkey/32/98889_2.png) [@SpaceMonkey](https://meta.discourse.org/u/SpaceMonkey)
#### Post date: [November 21, 2018, 9:05pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/6 "2018-11-21T21:05:01Z")

</div>

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?

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/c/fcde1aa300d3fbddf3d63191d6161e059be30384.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 21, 2018, 9:20pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/7 "2018-11-21T21:20:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![trusktr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trusktr/32/116841_2.png) [@trusktr](https://meta.discourse.org/u/trusktr)
#### Post date: [December 30, 2019, 6:04pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/8 "2019-12-30T18:04:34Z")

</div>

Is there button to restart the server from the UI? I see a button to upgrade when a new version is out, which I think does a restart, but I don’t see a button just for restart.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 30, 2019, 7:15pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/9 "2019-12-30T19:15:50Z")

</div>

There is not, no. Why do you need to restart the web server? What’s the issue you’re trying to solve?

---

<div class="post-metadata">

### Author: ![trusktr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trusktr/32/116841_2.png) [@trusktr](https://meta.discourse.org/u/trusktr)
#### Post date: [December 30, 2019, 7:17pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/10 "2019-12-30T19:17:39Z")

</div>

I wanted to restart the server, to see if app.yml changes would take effect. I guess it needs a rebuild too. Maybe a UI button for that (near where upgrade section of admin is) would be convenient too.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 30, 2019, 7:20pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/11 "2019-12-30T19:20:55Z")

</div>

Most changes to the `app.yml` require a rebuild. Rebuilds cannot br triggered from the UI, you need to connect to the server itself, outside the docket container.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 30, 2019, 7:27pm UTC](https://meta.discourse.org/t/how-i-could-restart-the-web-server-in-docker/27890/12 "2019-12-30T19:27:39Z")

</div>

Settings such as SMTP can be updated in the yml and will be immediately picked up via:

```
./launcher destroy app
./launcher start app

```

While other things including plugins will require a rebuild.
