secret_key_basefor 'production' environment, set this string with
bin/rails credentials:edit(ArgumentError)
6 months 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
Status changed to Awaiting User Response railway[bot] • 6 months ago
6 months 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[bot] • 6 months ago
6 months 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[bot] • 6 months ago
brody
Hello,Looks like you just applied the changes to save the variable.
6 months ago
thanks the reply, yeah, I just did and now lets see
Status changed to Awaiting Railway Response railway[bot] • 6 months ago
brody
You're deploying from GitHub, that section of the docs wouldn't quite be applicable to you.
6 months ago
So now DB is blowing up I'm guessing I need to set one up? I'm just a bit lost where.
6 months ago
Yeah, you have yet to deploy a database.
Follow these instructions -
https://docs.railway.com/guides/rails#deploy-from-a-github-repo
6 months ago
You will also want to reference this page -
https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project