jschroeder7

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

The solution for me was to create a master.key file

You can create the master.key file by running this command:
EDITOR=nano rails credentials:edit

Once that is created, it will also create a credentials.yml.enc file

Ccopy the database.yml / master.key / credentials.yml.enc from your dev server and put it on the production server and then cap production deploy should work

Posted in Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

When running cap production deploy, I get this error message.

00:13 deploy:assets:precompile
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
01 rake aborted!
01 ArgumentError: Missing secret_key_base for 'production' environment, set this string with bin/rails credentials:edit