Official flow reference: 点击打开链接
An example flow:
Deploy: starting
Rbenv ensures that the version we configured on config/deploy.rb is installed and that it can write on disc.
Checks git repository
Create needed folder tree
/var/www
App_name
Shared
Public
Assets
Releases
Deploy: updating
Clone the whole repo in /var/www/app_name/repo
Creates a new folder date-time named on /var/www/app_name/releases/20140717180754
Copies the project there
Deploy: publishing
Runs bundle install in last release folder
Runs assets:precompile copying our minimized assets to shared/public/assets
Creates a soft link from last release to /var/www/app_name/current
Restart server.
Deploy:finishing
Logs deployment to revisions.log

本文详细介绍了部署过程中的关键步骤,包括确保正确版本的Ruby环境配置、克隆仓库、创建必要的文件夹结构、安装依赖包、预编译静态资源、更新当前应用指向及重启服务器等。
569

被折叠的 条评论
为什么被折叠?



