secret_key_basefor 'production' environment, set this string with
bin/rails credentials:edit(ArgumentError)
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`"> ⓘ Deployment information is only viewable by project members and Railway employees.
7 Replies
Status changed to Awaiting User Response Railway • about 1 year ago
a year ago
Found it I think
https://docs.railway.com/guides/rails#deploy-from-the-cli
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.
a year ago
thanks the reply, yeah, I just did and now lets see 
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.
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
a year ago
You will also want to reference this page -
https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project
