Deploying Drupal projects: git + capistrano
removing some folders from git, file .gitignore with these contents:
# Ignore paths that contain generated content.
cache/
files/
sites/*/files
sites/*/private
Using symbolic links for /files directory:
namespace:custom do
task:symlink do
run "ln -s /var/www/crucerista/sites/crucerista.net/files/ /var/www/crsta/current/sites/crucerista.net/"
run "echo 'finished'"
end
end
after "deploy","custom:symlink"
- Read more about Deploying Drupal projects: git + capistrano
- Log in or register to post comments
Installing capistrano in Centos
Very very easy in CentOS, just like it would be in a Debian system:
# yum install ruby -y
# yum install rubygems -y
Really, it couldn't be easier. Next step, just having fun with Capistrano :-)
- Read more about Installing capistrano in Centos
- Log in or register to post comments
Capistrano config.rb
set :application, "bounty app"
#set :repository, "localhost:/var/www/git/bountyrepo"
set :repository, "localhost:/var/www/git/blessed"
set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
- Read more about Capistrano config.rb
- Log in or register to post comments