ArgumentError: Missing
secret_key_base
for 'production' environment, set this string with
bin/rails credentials:edit
(ArgumentError)
staycreativedesign
PROOP

a year ago

how do i set this with you guys?

/rails/config/environment.rb:5:in `'

Tasks: TOP => db:prepare => db:load_config => environment

(See full trace by running task with --trace)

bin/rails aborted!

ArgumentError: Missing secret_key_base for 'production' environment, set this string with bin/rails credentials:edit (ArgumentError)

      raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

7 Replies

a year ago

Hello,

Looks like you just applied the changes to save the variable.


Status changed to Awaiting User Response Railway about 1 year ago


staycreativedesign
PROOP

a year ago

Found it I think

https://docs.railway.com/guides/rails#deploy-from-the-cli

slightly_smiling_face emoji I have no clue how I found the docs


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

You're deploying from GitHub, that section of the docs wouldn't quite be applicable to you.


Status changed to Awaiting User Response Railway about 1 year ago


brody

Hello,Looks like you just applied the changes to save the variable.

staycreativedesign
PROOP

a year ago

thanks the reply, yeah, I just did and now lets see slightly_smiling_face emoji


Status changed to Awaiting Railway Response Railway about 1 year ago


brody

You're deploying from GitHub, that section of the docs wouldn't quite be applicable to you.

staycreativedesign
PROOP

a year ago

So now DB is blowing up I'm guessing I need to set one up? I'm just a bit lost where.


a year ago

Yeah, you have yet to deploy a database.

Follow these instructions -

https://docs.railway.com/guides/rails#deploy-from-a-github-repo



Loading...