Giter Site home page Giter Site logo

webbykat / drupal-govcon-2017 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drupal4gov/drupal-govcon-2017

0.0 0.0 0.0 495.33 MB

Drupal GovCon Website

Home Page: http://drupalgovcon.org

Shell 0.05% PHP 0.30% JavaScript 0.77% HTML 98.66% CSS 0.23% Gherkin 0.01%

drupal-govcon-2017's Introduction

Drupal GovCon

Welcome to the repo for the Drupal GovCon event website.

Getting Started

This project is based on 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 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)
  • Clone your fork
$ git clone [email protected]:<your repository>/Drupal-GovCon-2017.git
  • Add the parent repository as an upstream
$ git remote add upstream [email protected]:Drupal4Gov/Drupal-GovCon-2017.git
  • Install Composer Dependencies (warning: this can take some time based on internet speeds)
$ composer install
  • Setup Virtual Machine (warning: this can take some time based on internet speeds)
$ blt vm
  • Syncronize your local with the cloud
$ blt sync:refresh

Additional BLT documentation may be useful. You may also access a list of BLT commands by running:

$ blt

Note the following properties of this project:

  • Primary development branch: master
  • Local environment: DrupalVM
  • Local drush alias: @capitalcamp.local
  • Local site URL: http://local.capitalcamp.com

Working With BLT

This is the common workflow for this project.

  • Locate a ticket that you are planning on working
  • Ensure that your git is tracking the most current upstream.
$ git fetch upstream
  • Create a new branch off of upstream/master that is based on the ticket you are working (e.g. D4G-XXX)
$ git checkout -b D4G-XXX upstream/master
  • Reset local environment to ensure all is inline with new branch. WARNING: this is destructive
$ blt sync:refresh
  • Do whatever work is required for ticket
  • Create new commit(s) as needed. All commit messages should follow the pattern: D4G-XXX: commit messages go here. They must include the Ticket Number (with a dash AND a colon), a message, and a period.
  • Run Tests / Validation Scripts
$ blt validate
$ blt tests
  • Ensure no other changes have been made to the upstream/master branch. If they have, rebase your branch.
$ git fetch upstream
$ git rebase upstream/master
  • Push your commit(s) to your origin
$  git push --set-upstream origin DGC-XXX
  • Create a new Pull Request that mentions the original ticket in the body (#DGC-XXX)
  • Ensure the build passes

Resources

Troubleshooting

Cybersquatting site for capitalcamp.com loads in browser instead local Drupal install

It's likely your /etc/hosts file wasn't updated properly. Ensure you have the Vagrant hostsupdater plugin vagrant plugin list and then try to reprovision your VM from the box dir with vagrant reload --provision

PHP version is not correct

blt/composer may complain that you have the wrong PHP version. If this happens there are a lot of options for installing a different version of PHP. Easiest is probably with homebrew. After installing PHP 5.6 with homebrew you may need to reorder your path to include /usr/local/bin before /usr/bin. To do this run the following commands:

echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile

source ~/.bash_profile

drupal-govcon-2017's People

Contributors

mikemadison13 avatar aweingarten avatar charlieartist avatar jonraedeke avatar lkopacz avatar krapp91 avatar timwood avatar phernand42 avatar sarahjean avatar malikkotob 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.