Have a website that has a db that needs hosting? Heroku is charging now, so this video is me changing platforms to use Render.com for my Ruby on Rails application. It does not require a credit card. Totally free. Great for setting up your portfolio or showing a proof of concept web application idea.
(Pinned comment coming today after this video airs)
1. Sign up for an account: 00:23
2. Choose a service: 00:48
3. Create project: 01:16
4. Create a Postgres database: 01:58
5. Update environment variables: 02:28
5a. Environment variable - DATABASE_URL: 03:27
5b. Environment variable - RAILS_MASTER_KEY: 04:22
bin/rails credentials:edit
(📌linked reference in pinned comment)
5c. Environment variable - RAILS_ENV: 07:03
6. Add the DATABASE_URL ENV_VARIABLE to repo: 07:37
(📌details in pinned comment)
7. Update web service Start Command to setup database: 09:25
(📌command in pinned comment)
8. Deploy changes with commit SHA (I do this a lot): 11:28
9. Building and Debugging: 11:58
9a. Fix Platform Support error: 12:13
(📌command in pinned comment)
9b. Fix Uglifier (by replacing it): 14:55
(📌script info in pinned comment)
9c. Fix error run destructive action against prod by updating Render Start Command: 18:50
(📌disable command info in pinned comment)
9d. Fix storage.yml error (just add the file): 24:14
(📌scripts info in pinned comment)
10. Update Startup command (this was done before fixing storage.yml but I wanted to keep debugging task steps grouped together): 22:33
I probably could have used
`bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}`
but I ended up using
`bundle exec puma -C config/puma.rb` 23:50
11. Successful build!!: 26:07