Skip to content

Instantly share code, notes, and snippets.

@jmolivas
jmolivas / update-core.yml
Last active September 6, 2017 14:45
Update DrupalCore to 8.4 and and drush to 9.0
# How to use
# drupal update:core:84 --directory=/path/to/site
command:
name: update:core:84
description: 'Update DruapalCore fix drush issues.'
vars:
drupal: 8.4.0-beta1
drush: 9.0.0-beta4
commands:
# - command: exec
@jmolivas
jmolivas / contribute.sh.md
Last active July 16, 2017 11:07
DrupalConsole contribute script
@jmolivas
jmolivas / README.md
Last active August 5, 2019 20:01
Render a form on a page via a Controller on Drupal8.

Create file at ~/console/chain/generate-controller-form-render.yml containing:

command:
  name: 'generate:controller:form:render'
  description: 'Controller + Form generator'
commands:
  - command: 'generate:module'
    options:
        module: example
@jmolivas
jmolivas / Vagrantfile.local
Last active April 18, 2018 07:24
Executing DrupalConsole commands on a project with DrupalVM using vagrant-exec plugin no need to create a site alias configuration or ssh into the VM. Project file is config/Vagrantfile.local
if Vagrant.has_plugin?('vagrant-exec')
config.exec.commands '*', directory: '/var/www/drupal'
end
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Drupal\Console\Core\Style\DrupalStyle;

Digital Ocean server setup

Install Droplet

Default D8 Image

Update php 5.6

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
@jmolivas
jmolivas / readme.md
Last active June 10, 2019 22:18
Automate DrupalConsole release process

Automate DrupalConsole release process

This script run the following tasks on multiple repos from the CLI.

  • Creates a new tag.
  • Push new created tag.
  • Create a new release.
  • Build the phar file. (only for drupal-console-launcher)
  • Upload the phar file (only for drupal-console-launcher)

To execute this proces is required to install

Planned sessions for Drupal events during 2017

Improving Drupal 8 development workflow

Topics

  • Using Composer to manage project dependencies.
  • Applying Patches.
  • Installing and updating drupal and third party libraries.
  • Overriding settings and configurations.
  • Managing configuration.