DEV Community

Ahmad Ya'kob Ubaidullah
Ahmad Ya'kob Ubaidullah

Posted on

How to deploy production environment rails 6

at other server run :
EDITOR=vim rails credentials:edit

add and commit
config/secrets.yml.enc

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 :

RAILS_MASTER_KEY: masterkeyhere

then start your server in production environment.

  • Note that not to commit application.yml , and better to add it to gitignore.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay