GithubHelp home page GithubHelp logo

bradallenfisher / drupal7 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from docksal/boilerplate-drupal7

0.0 2.0 0.0 3.79 MB

A sample D7 project powered by Docksal

Home Page: http://docksal.io

Shell 0.51% ApacheConf 0.10% PHP 91.17% JavaScript 4.85% CSS 3.13% HTML 0.05% Gherkin 0.18%

drupal7's Introduction

Docksal powered Drupal 7 Installation

This is a sample vanilla Drupal 7 installation pre-configured for use with Docksal.

Features:

  • Vanilla Drupal 7
  • fin init example
  • Drupal multisite example
  • Behat setup example and sample tests

Setup instructions

Step #1: Docksal environment setup

This is a one time setup - skip this if you already have a working Docksal environment.

Follow Docksal environment setup instructions

Step #2: Project setup

  1. Clone this repo into your Projects directory

    git clone https://github.com/docksal/drupal7.git
    cd drupal7
    
  2. Initialize the site

    This will initialize local settings and install the site via drush

    fin init
    
  3. On Windows add 192.168.64.100 drupal7.docksal to your hosts file

  4. Point your browser to

    http://drupal7.docksal
    

More automation with 'fin init'

Site provisioning can be automated using fin init, which calls the shell script in .docksal/commands/init.
This script is meant to be modified per project. The one in this repo will give you a good example of advanced init script.

Some common tasks that can be handled by the init script:

  • initialize local settings files for Docker Compose, Drupal, Behat, etc.
  • import DB or perform a site install
  • compile Sass
  • run DB updates, revert features, clear caches, etc.
  • enable/disable modules, update variables values
  • run Behat tests

Behat test examples

Behat tests are stored in tests/behat.

Example of running Behat tests:

fin behat features/blackbox.feature

Drupal multisite example

There is an additional site configured in this project: anothersite.drupal7.docksal

To have it installed during fin int

  1. Uncomment the following block in .docksal/commands/init:

    # Multisite - install an additional site
    site_install_anothersite
    
  2. Run fin init again

  3. On Windows add another domain mapping to your hosts file

192.168.64.100	anothersite.drupal7.docksal

drupal7's People

Contributors

lmakarov avatar achekulaev avatar

Watchers

James Cloos avatar Brad Fisher 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.