# How to install Discourse in the AWS EC2 Instances(Ubuntu Server LTS)?

**URL:** https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406
**Category:** Self-hosting
**Created:** [23 maart 2019 om 12:33 UTC](https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406 "2019-03-23T12:33:34Z")
**Posts on this page:** 1
**Showing post:** 42

<div class="post-metadata">

### Author: ![Lee533](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee533/32/134468_2.png) [@Lee533](https://meta.discourse.org/u/Lee533)
#### Post date: [30 maart 2019 om 00:41 UTC](https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406/42 "2019-03-30T00:41:01Z")

</div>

First question, [at]Stephen told me, I need to:

> [@Stephen](#):
>
> rebuild your app (./launcher rebuild app) so that Let’s Encrypt can enroll the certificate.

because of I’m using Let’s Encrypt, and the reason is:

> [@Stephen](#):
>
> once DNS is configured it needs to generate a certificate, which is done when the container is built.

But, I rebooted Instance, configured DNS and without run command `./launcher rebuild app`, [the welcome page](https://discourse.tricklehub.com/) loaded successfully. So the question is how did it happened?

* * *

Second questions, how to auto renew Let’s Encrypt certificate?  
Should I

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709/1):
>
> editing the `app.yml`

like this [Topic](https://meta.discourse.org/t/setting-up-https-support-with-lets-encrypt/40709) said(I’ve already using `./discourse-setup` to enable Let’s Encrypt)?

---

_[View the full topic](https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406)._
