简体   繁体   中英

How do I backup a ruby website with a database?

I have followed an online tutorial and created a website with ruby on rails. I want to save the completed project. However, I am performing some tweaks such as installing omniauth. I want to keep a backup, though, of the completed tutorial files.

I put all the files in a backup folder. However, what about the database? I do not fully understand migrations, but what will happen to the database when I attempt to backup the project?

Can I copy all the files from the folder to another folder, and just run everything from there? Will everything be stored? Will I need to run migrations or anything to get the site backup running?

我只能代表SQLite,但是如果那是您用作数据库的内容,则可以将整个项目文件夹复制到其他位置(或重命名),然后运行它,数据库仍然存在。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM