-
Copy
config/master.key
from local filesystem to the production server under<project_root>/shared/config/master.key
. -
Configure capistrano’s config/deploy.rb to include this line:
set :linked_files, %w{config/master.key}
By doing this you’re telling Capistrano to symlink config/master.key
to <project_root>/shared/config/master.key
which contains the master key you’ve just copied to the server.
-
Deploy app again and verify that deployment is successful.
-
Commit this confguration changes. Don’t check-in
config/master.key
!