R
Railway2mo ago
Gaura

Trying to host basic rails app

Yo I'm trying to use railway to host my rails app. I keep getting this error though:
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
So locally when I use bin/rails credentials:edit, the file looks something like this:
# aws:
# access_key_id: 123
# secret_access_key: 345

# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.

secret_key_base: some stuff that I've redacted
# aws:
# access_key_id: 123
# secret_access_key: 345

# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.

secret_key_base: some stuff that I've redacted
So what's going wrong?
2 Replies
Percy
Percy2mo ago
Project ID: d9305229-c4f5-4bf8-99a0-14df9e215a40
Gaura
Gaura2mo ago
d9305229-c4f5-4bf8-99a0-14df9e215a40
Want results from more Discord servers?
Add your server