Skip to content

Instantly share code, notes, and snippets.

View mchelen's full-sized avatar

Mike Chelen mchelen

View GitHub Profile
run_tests:
stage: test
script:
- npm install
- ./bin/www &
- npm test
module.exports = {
"production": {
"host": process.env.RDS_HOSTNAME,
"port": process.env.RDS_PORT,
"username": process.env.RDS_USERNAME,
"password": process.env.RDS_PASSWORD,
"database": "example",
"dialect": "postgres"
}
}
image: node:4.4.7
services:
- postgres:9.5.3
before_script:
- npm install
all_tests:
script:
$ bundle install
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the /usr/src/app/Gemfile freeze
by running `bundle install --no-deployment`.
You have added to the Gemfile:
* jquery-ui-rails
function test123_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) {
dpm($node);
}
/*
Recoverable fatal error: Argument 1 passed to test123_node_view() must implement interface Drupal\Core\Entity\EntityInterface, array given in test123_node_view() (line 28 of modules/custom/test123/test123.module).
*/
@mchelen
mchelen / test.md
Last active July 19, 2016 00:56
drupalgovcon notes

foo bar

PATH = $PATH:$HOME/bin
PATH = $PATH:/usr/bin
PATH = $PATH:/foo/bar
export PATH
#####################
export PATH = $PATH:\
$HOME/bin:\
/*
*= require rails_bootstrap_forms
*= require_tree ../../../vendor/assets/stylesheets/.
*= require_tree .
*/
@import "bootstrap-sprockets";
@import "bootstrap";
@charset "utf-8";
[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The class "Drupal\Console\Annotation\DrupalCommand" is not annotated with @Annotation. Are you sure this class c
an be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "Drupal\Console\Annotation\DrupalCo
mmand". If it is indeed no annotation, then you need to add @IgnoreAnnotation("DrupalCommand") to the _class_ doc comment of class
Drupal\Console\Command\Migrate\DebugCommand.
@mchelen
mchelen / drush command
Last active June 15, 2016 19:17
drupal 8 delete all nodes using devel_generate
drush generate-content 0 --kill --types=article