https://www.youtube.com/watch?v=JehDAyTF9o4
http://capifony.org/
Before, enable SSH on server
First, install capifony itself with RubyGems:
gem install capifony
Setup initial deployment configuration for your project:
cd path/to/your/project
capifony .
Edit file
# deploy.rb
set :application, "My App"
set :deploy_to, "/var/www/my-app.com"
set :user, "{user in :domain}"
set :use_sudo, false
set :domain, "my-app.com"
set :scm, :git
set :repository, "." #or "file:///Users/deployer/sites/my-app"
set :deploy_via, :copy
set :model_manager, "doctrine"
set :shared_files, ["app/config/parameters.yml"]
set :use_composer, true
set :update_vendors, true
role :web, domain
role :app, domain, :primary => true
set :keep_releases, 3
Run commands: (you will need to input user's password)
cap deploy:setup
cap deploy
0 nhận xét:
Đăng nhận xét