Skip to content

Быстрый деплой с помощью Vlad Deployer за счет НЕ загрузки рельсового окружения при выполнении Rake задач

Notifications You must be signed in to change notification settings

BrandyMint/vlad_deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Смысл

Смысл в том, что надоело при деплое ждать когда rake загрузит все рельсовое окружение, которое на момент деплоя нафиг не нужно. Рецепт оказался простым - выносим влада в отдельный Rakefile.

Установка

git submodule add git://github.com/BrandyMint/vlad_deploy.git ./script/vlad
git submodule init
git submodule update
cd ./script/vlad; bundle
cd ../..
cp script/vlad/config/deploy.rb config/
vi ./config/deploy.rb

Подключаем unicorn в проект

cp ./script/vlad/config/unicorn.rb ./config/ vi ./config/unicorn.rb # Change application

Настройка сервера

rake -N -f ./script/vlad/Rakefile vlad:setup to=production 

Настраиваем веб-сервер (nginx/apache) на сервере

git push

Быстрый деплой

./script/vlad/deploy

Статейка об этом модуле

About

Быстрый деплой с помощью Vlad Deployer за счет НЕ загрузки рельсового окружения при выполнении Rake задач

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published