Iteration L3: Moving to Production
Running in production is so much more than just deploying your application. It’s about keeping your application running smoothly and keeping your data safe. If your server goes down, a new one can be started in minutes. If your data is lost, it’s lost forever.
Backing Up Your Database
If you look at your config/database.yml, you’ll see that it contains definitions for four databases: primary, cache, queue, and cable. These are stored in a storage directory, which is mapped to a directory on your host machine. This is where your data is stored. It’s quite possible to back up all four, but for now we’re going to focus on the primary database. The primary database is the one that contains your users, products, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access