jesconstantine / pbl-drupal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Palantir Butler Lab - Drupal

This is the development repository for Palantir Butler Lab's Drupal 8 website. It contains the codebase and an environment to run the site for development.

Table of Contents

Development Environment

The development environment is based on palantirnet/the-vagrant. To run the environment, you will need:

If you update Vagrant, you may need to update your vagrant plugins with vagrant plugin update.

Getting Started

  1. Clone the project from github: git clone https://github.com/palantirnet/your-project.git
  2. From inside the project root, run:
  composer install --ignore-platform-reqs
  vagrant up
  1. You will be prompted for the administration password on your host machine
  2. Log in to the virtual machine (the VM): vagrant ssh
  3. From within the VM, build and install the Drupal site: phing build install migrate
  4. Visit your site at drupal-skeleton.local

How do I work on this?

You can edit code, update documentation, and run git commands by opening files directly from your host machine.

To run project-related commands other than vagrant up and vagrant ssh:

  • SSH into the VM with vagrant ssh
  • You'll be in your project root, at the path /var/www/pbl-drupal.local/
  • You can run composer, drush, and phing commands from here

To work on the styleguide:

  • SSH in to the VM with vagrant ssh
  • Go to the styleguide directory: cd styleguide; you'll be at the path /var/www/pbl-drupal.local/styleguide
  • You can run butler from here with npm run butler, then view the styleguide in your browser at pbl-drupal.local:4000

Avoid committing to git from within your VM, because your commits won't be properly attributed to you. If you must, make sure you create a global .gitignore [internal] within your VM at /home/vagrant/.gitignore, and configure your name and email for proper attribution:

git config --global user.email 'me@palantir.net'
git config --global user.name 'My Name'

Drupal Development

You can refresh/reset your local Drupal site at any time. SSH into your VM and then:

  1. Download the most current dependencies: composer install
  2. Rebuild your local CSS and Drupal settings file: phing build
  3. Reinstall Drupal: phing install
  4. Run your migrations: phing migrate
  5. ... OR run all three phing targets at once: phing build install migrate

Additional information on developing for Drupal within this environment is in docs/general/drupal_development.md.

Deployment

@todo This section needs to be customized per-project.

Styleguide Development

  • Serve the styleguide and watch for changes:

Complete Butler usage is documented in docs/general/styleguide_development.md.

Additional Documentation

Project-specific:

General:


Copyright 2017 Palantir.net, Inc.

About


Languages

Language:PHP 99.2%Language:Gherkin 0.8%