Skip to content

Commit

Permalink
Import variables into Render
Browse files Browse the repository at this point in the history
  • Loading branch information
psonnera committed Jun 19, 2024
1 parent 2ec07df commit ff20594
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 6 deletions.
44 changes: 43 additions & 1 deletion docs/troubleshoot/render.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,46 @@ Mind it might only have fallen asleep and would need an uptime robot to stay awa

* In the `Dashboard`, open the `Manual Deploy` drop down menu and select `Restart service`.

<img src="/vendors/render/img/RenderT01.png" width="600px" >
<img src="/vendors/render/img/RenderT01.png" width="600px" >

</br>

## Backup your site variables

Having a copy of your variables is very important since some of them are vital to your site like MONGODB_URI and your access to it like API_SECRET.

Unfortunately there is no automated way to export your variables in Render.

Copy the values in a spreadsheet or create a `render.env` file, manually, using the format:

`VARIABLE="value"`

</br>

## Restore your site variables

You can use this method to import Render variables from [Railway](/troubleshoot/railway.md#backup-your-site-variables) or [Heroku](/troubleshoot/heroku.md#method-2-export) if migrating (follow the platform name link to see how to export them).

* Log in [Render](https://dashboard.render.com/)

<img src="/vendors/render/img/Render02.png" width="400px" ></br>

* Select your web service

<img src="/vendors/render/img/Render16.png" width="600px" ></br>

* Go to `Environment`, click on `Add from .env`.

<img src="/vendors/render/img/Render25.png" width="600px" ></br>

- Delete all contents, open your backup file (the .env you generated when doing backup) and copy/paste all in the editor area. Click `Add variables` bottom right.

<img src="/vendors/render/img/Render26.png" width="500px" ></br>

- Scroll down the list and trash all variables that don't have a value (they're not used)

<img src="/vendors/render/img/Render27.png" width="500px" ></br>

- Scroll to the bottom of the list and click `Save changes`. Wait until your site redeploys with the new variables.

<img src="/vendors/render/img/Render28.png" width="500px" ></br>
Binary file added docs/vendors/render/img/Render25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/vendors/render/img/Render26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/vendors/render/img/Render27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/vendors/render/img/Render28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/vendors/render/new_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,26 +136,26 @@ Select below how you want to do this:

</br>

* Sign in [Render](https://dashboard.render.com/) with GitHub
* Log in [Render](https://dashboard.render.com/)

<img src="/vendors/render/img/Render02.png" width="400px" ></br>

* Select your web service

<img src="/vendors/render/img/Render16.png" width="600px" >
<img src="/vendors/render/img/Render16.png" width="600px" ></br>

* Go to `Environment`, your variables will display

<img src="/vendors/render/img/Render21.png" width="500px" >
<img src="/vendors/render/img/Render21.png" width="500px" ></br>

* 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`.

<img src="/vendors/render/img/Render23.png" width="600px" >
<img src="/vendors/render/img/Render23.png" width="600px" ></br>

* Wait a few minutes for your site to redeploy. You can track the status in `Events`.

<img src="/vendors/render/img/Render24.png" width="800px" >
<img src="/vendors/render/img/Render24.png" width="800px" ></br>

</br>

0 comments on commit ff20594

Please sign in to comment.