at other server run :
EDITOR=vim rails credentials:edit
add and commit
then push and pull to production server.
copy master key and put into production server ENV using
config/application.yml which will be loaded using figaro gem. The format is like this :
then start your server in production environment.
- Note that not to commit application.yml , and better to add it to gitignore.