--- orphan: true --- # Nightscout in Render
```{admonition} Too complicated? Not what you're looking for? :class: seealso Consider a hosted Nightscout service! Check for easier solutions [here](/index.md#nightscout-as-a-service). ```
```{card} ## Render ![Render Free](/vendors/img/Render.png) ^^^ You can create your Nightscout site in Render. **Pros**: * No credit card required **Cons**: * The free plan doesn't guarantee any reliability * App will sleep after 15 minutes * Render URLs are considered unsafe by some internet providers * Relying on the MongoDB Atlas database ```
------ ## Step 0: Create a database ```{admonition} Render doesn't include a database :class: note Make sure you [created one](/nightscout/database) before starting your Nightscout web app creation with Render. Come back here when you have a MONGODB_URI connection string. ``` ```{admonition} Migrating? :class: tip Copy the connection string from your previous platform: [edit the variables](/nightscout/setup_variables.md#nightscout-configuration) and look for `MONGODB_URI`. If you don't see `MONGODB_URI` but see `MONGO_CONNECTION` (**NOT** `MONGO_COLLECTION`): use its value. ```
## Step 1: Create a GitHub account and fork the Nightscout project ```{tab-set} :::{tab-item} This is not necessary anymore (with a Docker image) Continue with Step 2. ::: :::{tab-item} I don't have a GitHub Account ### Create a GitHub account ::: {include} /vendors/github/create.md ::: :::{tab-item} I already have a GitHub Account ### Update your Nightscout fork :::{include} /vendors/github/update_b.md ::: ```
## Step 2: Create a Render account a) Open a new browser page in [Render](https://render.com/) and select `GET STARTED FOR FREE`
b) Sign up with GitHub
c) `Authorize Render`
d) `COMPLETE SIGN UP` with your GitHub account email
e) Check your inbox and click the confirmation link

## Step 3 - Deploy Nightscout in Render Select below how you want to do this: ```{tab-set} :::{tab-item} Deploy with Docker (recommended) :::{include} new_user_d.md ::: :::{tab-item} Using a blueprint :::{include} new_user_a.md ::: ```
* From the menu, `Dashboard`, then select your web service.
* This is your new Nightscout site, click on the URL to open it

```{include} /nightscout/first_setup.md ```
## Editing Variables in Render
* Log in [Render](https://dashboard.render.com/)
* Select your web service
* Go to `Environment`, your variables will display
* You can modify variables by making the changes directly in the text boxes. You can also add variables with `Add environment variable`. When you're done, scroll down and `Save changes`.
* Wait a few minutes for your site to redeploy. You can track the status in `Events`.