Giter Club home page Giter Club logo

drupal-govcon-2017's Introduction

Drupal GovCon

Welcome to the repo for the Drupal GovCon event website. This is an open source project and we proudly make all of our source code available (not only to those that want to contribute to the project, but for those that are interested in seeing a working Drupal 8 site!).

Getting Started

This project built with BLT, an open-source project template and tool that enables building, testing, and deploying Drupal installations following Acquia Professional Services best practices.

  • Ensure that your computer meets the minimum installation requirements (and then install the required applications). See the BLT System Requirements and Lando System Requirements.
  • Fork the parent repository in GitHub
  • Request access to the Drupal4Gov organization in GitHub
  • Request access to the Acquia Cloud Environment for Drupal GovCon
  • Setup a SSH key that can be used for GitHub and the Acquia Cloud (you CAN use the same key)

After creating a fork of the repository in Github 9and installing all dependencies above) there are only 4 commands to get started:

  • git clone (clone your fork)
  • composer install (install dependencies for the project)
  • lando start (provision the vm)
  • lando blt setup (install Drupal)

Updating from DrupalVM

If you have been a part of our team in the past and have a local DrupalVM, here are a few steps to take to "update" to Lando.

  • blt vm:nuke to destroy the old vm
  • open the blt/local.blt.yml file and look for a "vm" key. If present, remove the vm (and enable:true) keys from the file
  • open the docroot/sites/default/settings/local.settings.php file and replace the database configuration with:
/**
 * Database configuration.
 */
$databases = array(
  'default' =>
  array(
    'default' =>
    array(
      'database' => 'drupal8',
      'username' => 'drupal8',
      'password' => 'drupal8',
      'host' => 'database',
      'port' => '3306',
      'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);
  • run lando start
  • run lando blt setup

Note that the new local project url is http://drupalgovcon.lndo.site:8080

Working with Lando and BLT

Our team utilizes a standard Git flow for our development workflow. You can read more about our recommended workflow in the BLT docs.

In general, "all" commands (drush, blt, etc.) should be run "inside" the Lando container. You can do this by first running the lando command.

For example:

Cleanly Install Drupal:

lando blt setup

Sync Drupal Database from Cloud:*

lando blt sync

Log Into Drupal

lando drush uli

Resources

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.