使用 Capistrano 部署 rails 应用程序

Using Capistrano to deploy a rails app

我是 Capistrano 的新手,这是我第一次尝试使用它来部署我的 rails 应用程序。我相信我的 config/deploy.rb 设置正确,但在此之前

cap production deploy:setup

我想确保我的数据库不会受到伤害。这个项目的数据库已经设置好并且里面有数据。我不知道是否在做

cap production deploy:setup

将破坏我的生产数据库并将其重新创建为空数据库。意见?

cap deploy:setup

When you run this command, Capistrano will SSH to your server, enter the directory that you specified in the deploy_to variable, and create a special directory structure that’s required for Capistrano to work properly. If something is wrong with the permissions or SSH access, you will get error messages. Look closely at the output Capistrano gives you while the command is running.

此命令不会对您的数据库执行任何操作。