Skip to content

Instantly share code, notes, and snippets.

@bySebastian
Last active November 28, 2017 10:47
Show Gist options
  • Save bySebastian/a3aa953b24d19dd9fad5e11149ccca46 to your computer and use it in GitHub Desktop.
Save bySebastian/a3aa953b24d19dd9fad5e11149ccca46 to your computer and use it in GitHub Desktop.
[site-mode] Set working environment Drupal site #drupal
# 1. Ensure the local copy is using a sites/default/settings.local.php, and that it is being included by the sites/default/settings.php file.
# 2. Copy sites/development.services.yml to sites/default/services.yml. The services.yml file is ignored by Git by default, and contains environment-specific settings.
# 3. Ensure the permission of the sites/default/services.yml file allow you to read/write, as when you run Drupal cConsole's "site:mode" command, the file will be modified.
# 4. Run Drupal Console's "site:mode" command to put the site in development mode.
drupal site:mode dev
# ...
# 4. Run Drupal Console's "site:mode" command to put the site in production mode.
drupal site:mode prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment