Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I deploy a rails only api on render ?

Yannick asked in Rails

I was trying to deploy my rails only application on render but still getting error : couldn't find expected key "-", in my render.yaml file. Please anyone for help ?
Here is my render.yaml file

databases:
- name: myrailssite
databaseName: Congolese_British_Grammar_School_Backend
user: postgres
ipAllowList: []

services:
- type: web
name: myrailssite
env: ruby
buildCommand: "./bin/render-build.sh"
startCommand: bundle exec rails s
envVars:
- key: DATABASE_URL
fromDatabase:
name: postgresql
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
generateValue: true

  • type: redis name: redis ipAllowList: [] plan: free maxmemoryPolicy: noeviction
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,584+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.