Code Monkey home page Code Monkey logo

drupal-dev's Introduction

CORL Drupal development platform

This project is designed to allow for easy local development of Drupal platforms on Linux based environments through Vagrant with the CORL system.

Note: Currently CORL has only been tested on Linux based systems and there are known issues with Windows due to C style extensions that are required for the Nucleon gem that Vagrant can not currently compile. Hopefully in the near future this will be resolved.

This project creates a project.loc Vagrant machine that is fully provisioned for Drupal development and initializes a new site from a Drupal repository.

Getting started

  • Make sure CORL is installed:

      vagrant plugin install corl
    

You might consider creating an alias to the corl command set in Vagrant within your .bashrc or wherever you keep your environment aliases defined.

    alias corl='vagrant corl'
  • Clone this project down or fork on GitHub:

      git clone git://github.com/coraltech/drupal-dev.git
      git remote rm origin
      git remote add origin {your project url}
    
  • Fork the Drupal Git repository into your own project:

      git clone -b 7.x http://git.drupal.org/project/drupal.git drupal
      git remote add project {your drupal url}
      git push project 7.x
    
  • Edit the build.json in the top level and change the base Drupal Git url with the url for your project.

      vim build.json
    
      # Find the project environment development section and change:
      "www/drupal/project.loc": "git:::http://git.drupal.org/project/drupal.git[7.x]",
      # to:
      "www/drupal/project.loc": "git(hub)?:::{your project url}[{your dev branch}]",
    
  • Build the local development environment:

      corl node build development
    

This will clone down all of the packages, provisioner modules, gems, and Drupal repositories that you have defined in the build.json configurations.

  • Start the Vagrant machine:

      vagrant up
    

This will start the Vagrant machine, bootstrap the CORL system, run the build process on the Vagrant server, and provision the machine with the Drupal site.

When this process completes successfully, change the corl_stage fact in the node configuration to maintain:

    vim nodes/vagrant/project.loc.json

    # Find the corl_stage fact assignment and change:
    "corl_stage": "initialize"
    # to:
    "corl_stage": "maintain"

or run:

    corl node fact corl_stage maintain --nodes=project.loc

If you need to wipe all your changes and start again from scratch, change the corl_stage back to "initialize" and run:

    vagrant provision
  • Start the Vagrant RSync process

In another continuously running terminal start the Vagrant RSync process to follow changes to the project and sync with the Vagrant machine.

    vagrant rsync-auto
  • When you need to SSH into the box, run:

      vagrant ssh
    
  • If you need to reprovision the machine you can run:

      corl node provision --nodes=project.loc
    
  • Now you should be good to go for local Drupal development...

drupal-dev's People

Watchers

Derek Webb avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.