- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% block server_redirect -%} | |
| {% if item.server_name_redirect is defined -%} | |
| server { | |
| listen 80; | |
| server_name {{ item.server_name_redirect }}; | |
| return 301 $scheme://{{ item.server_name.split(' ')[0] }}$request_uri; | |
| } | |
| {% endif %} | |
| {% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "quick/starter", | |
| "description": "Drupal 8", | |
| "type": "drupal-profile", | |
| "license": "GPL-2.0-or-later", | |
| "minimum-stability": "dev", | |
| "prefer-stable": true, | |
| "authors": [ | |
| { | |
| "name": "lexsoft", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| PASSWORD_PATH = ".password" | |
| PASSWORD_ID_PATH = ".password_id" | |
| # Make sure to have installed vagrant-triggers plugin | |
| # > vagrant plugin install vagrant-triggers | |
| # After the first `vagrant up` stop the VM and execute the following steps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ### Checkout and push a new branch | |
| $ git checkout -b site1-update | |
| Switched to a new branch 'site1-update' | |
| $ git push -u origin site1-update | |
| Total 0 (delta 0), reused 0 (delta 0) | |
| To git@github.com:mortenson/drupal-multisite-subtree.git | |
| * [new branch] site1-update -> site1-update | |
| Branch site1-update set up to track remote branch site1-update from origin. | |
| $ ### Update the site1 subtree | |
| $ git subtree pull --prefix sites/site1 git@github.com:mortenson/site1.git master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd drupal-multisite-subtree | |
| $ ### This is a basic Drupal 7 install | |
| $ ls | |
| CHANGELOG.txt INSTALL.txt authorize.php misc sites | |
| COPYRIGHT.txt LICENSE.txt cron.php modules themes | |
| INSTALL.mysql.txt MAINTAINERS.txt includes profiles update.php | |
| INSTALL.pgsql.txt README.txt index.php robots.txt web.config | |
| INSTALL.sqlite.txt UPGRADE.txt install.php scripts xmlrpc.php | |
| $ ### Lets add a new multisite | |
| $ git subtree add --prefix sites/site1 git@github.com:mortenson/site1.git master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # @file | |
| # .travis.yml - Drupal 8 Travis CI Integration | |
| language: php | |
| sudo: false | |
| php: | |
| - 5.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @Given /^I am viewing a product with the following related products:$/ | |
| */ | |
| public function assertRelatedProducts(TableNode $relatedProducts) { | |
| // First, create a product. | |
| $product = (object) array( | |
| 'title' => 'Parent Product', | |
| 'type' => 'product', | |
| 'uid' => 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Given | |
| Given I am on [the] homepage | |
| Given I am on "url" | |
| # When | |
| When I go to [the] homepage | |
| When I go to "url" | |
| When I reload the page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Given /^(?:|I )am on "(?P<page>[^"]+)"$/ | |
| Given /^(?:|I )am on (?:|the )homepage$/ | |
| Given :type content: | |
| Given :vocabulary terms: | |
| Given I am an anonymous user | |
| Given I am at :path | |
| Given I am logged in as :name | |
| Given I am logged in as a user with the :permissions permission(s) | |
| Given I am logged in as a user with the :role role(s) | |
| Given I am logged in as a user with the :role role(s) and I have the following fields: |
NewerOlder