# Render rails app hosting

### Initial setup

Create the build script

{% embed url="<https://docs.render.com/deploy-rails#create-a-build-script>" %}

Follow the "Manual deploy" instructions here:

{% embed url="<https://docs.render.com/deploy-rails#deploy-manually>" %}

If this is the staging app, then add an additional env variable on Render:  `RAILS_ENV` and set its value to `staging`

### Setup TablePlus

Render is easy to setup on TablePlus.

1. When creating a new connection, click "import from URL" here: <https://share.cleanshot.com/wqcYLMpR>
2. Paste the External database URL from render found here: <https://share.cleanshot.com/BKvx5m6P>
3. That automatically sets all the fields for the connection in TablePlus.
4. Just rename it and you're good to go.
