capistrano http://alexmoreno.net/ en Deploying Drupal projects: git + capistrano http://alexmoreno.net/deploying-drupal-projects-git-capistrano/10-02-2013 <article role="article" about="http://alexmoreno.net/deploying-drupal-projects-git-capistrano/10-02-2013" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 10 February, 2013 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/deploying-drupal-projects-git-capistrano/10-02-2013" rel="bookmark"> <span>Deploying Drupal projects: git + capistrano</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p> </p><p>removing some folders from git, file .gitignore with these contents:</p><p> </p><p># Ignore paths that contain generated content.</p><p>cache/</p><p>files/</p><p>sites/*/files</p><p>sites/*/private</p><p> </p><p> </p><p> </p><p>Using symbolic links for /files directory:</p><p> </p><p> </p><p>namespace:custom do</p><p>    task:symlink do</p><p>      run "ln -s /var/www/crucerista/sites/crucerista.net/files/ /var/www/crsta/current/sites/crucerista.net/"</p><p>      run "echo 'finished'"</p><p>    end</p><p>end</p><p>after "deploy","custom:symlink"</p><p> </p><p> </p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/drupal" hreflang="es">drupal</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/drupal-developer" hreflang="es">drupal developer</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/git" hreflang="es">git</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/capistrano" hreflang="es">capistrano</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/drupal-developer-london" hreflang="es">drupal developer london</a></li> </ul></div> </div> </article> Sun, 10 Feb 2013 02:32:18 +0000 alexmoreno 95 at http://alexmoreno.net Installing capistrano in Centos http://alexmoreno.net/installing-capistrano-centos/07-12-2012 <article role="article" about="http://alexmoreno.net/installing-capistrano-centos/07-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 7 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/installing-capistrano-centos/07-12-2012" rel="bookmark"> <span>Installing capistrano in Centos</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Very very easy in CentOS, just like it would be in a Debian system:</p><p># yum install ruby -y</p><p></p><p></p><p># yum install rubygems -y</p># gem install capistrano<p>Really, it couldn't be easier. Next step, just having fun with Capistrano :-)</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/centos" hreflang="es">centos</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/capistrano" hreflang="es">capistrano</a></li> </ul></div> </div> </article> Fri, 07 Dec 2012 17:12:43 +0000 alexmoreno 70 at http://alexmoreno.net Capistrano config.rb http://alexmoreno.net/capistrano-configrb/07-12-2012 <article role="article" about="http://alexmoreno.net/capistrano-configrb/07-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 7 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/capistrano-configrb/07-12-2012" rel="bookmark"> <span>Capistrano config.rb</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>set :application, "bounty app"</p><p>#set :repository,  "localhost:/var/www/git/bountyrepo"</p><p>set :repository,  "localhost:/var/www/git/blessed"</p><p></p><p>set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names</p><p># Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`</p><p>#</p><p></p><p></p><p>default_run_options[:pty] = true</p><p>set :use_sudo, false</p><p></p><p>#role :web, "localhost"                          # Your HTTP server, Apache/etc</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/capistrano" hreflang="es">capistrano</a></li> </ul></div> </div> </article> Thu, 06 Dec 2012 22:56:16 +0000 alexmoreno 68 at http://alexmoreno.net