<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.computech.dev/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Frederick</id>
	<title>Computech CMS Wiki - Benutzerbeiträge [de]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.computech.dev/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Frederick"/>
	<link rel="alternate" type="text/html" href="https://wiki.computech.dev/wiki/Spezial:Beitr%C3%A4ge/Frederick"/>
	<updated>2026-11-24T13:43:35Z</updated>
	<subtitle>Benutzerbeiträge</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3111</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3111"/>
		<updated>2017-05-29T16:39:24Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Short version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&#039;&#039;&#039;Check that the merged configuration is still valid by importing it!&#039;&#039;&#039;&lt;br /&gt;
 drush cim&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Check that the merged configuration is still valid by importing it!&#039;&#039;&#039;&lt;br /&gt;
 drush cim&lt;br /&gt;
&lt;br /&gt;
=== Safe Sequences ===&lt;br /&gt;
&lt;br /&gt;
The following are from the Config Split developers presentation at Drupal Dev Days Seville in March 2017. A PDF of the presentation slides can be [http://nuvole.org/sites/default/files/presentation-config_split.pdf downloaded] from the Nuvole. Information below is from slides 38-42.&lt;br /&gt;
&lt;br /&gt;
==== Collaboration issues ====&lt;br /&gt;
A careless workflow may result in:&lt;br /&gt;
* Losing all uncommitted work.&lt;br /&gt;
* Accidentally overwrite work by others.&lt;br /&gt;
* A configuration that looks OK at first sight but that is actually invalid for Drupal.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for sharing ====&lt;br /&gt;
#Export configuration: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Merge: &amp;lt;code&amp;gt;git pull&amp;lt;/code&amp;gt;&lt;br /&gt;
#Update dependencies: &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Import configuration: &amp;lt;code&amp;gt;drush cim&amp;lt;/code&amp;gt;&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== If you do it wrong... ====&lt;br /&gt;
* Import before Export: Deletes your work, no backup.&lt;br /&gt;
* Merge before Export: Export deletes previous work, solved by git.&lt;br /&gt;
* No &amp;lt;code&amp;gt;updb&amp;lt;/code&amp;gt; or after &amp;lt;code&amp;gt;cim&amp;lt;/code&amp;gt; (will be disallowed in the future): database might be broken.&lt;br /&gt;
* No &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;: may not have all the updated code.&lt;br /&gt;
* Merge before Commit: Manual labour on conflicts.&lt;br /&gt;
* Forgotten Import: Next export will not contain merged config, more difficult to solve in git.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for updating ====&lt;br /&gt;
#Update code: &amp;lt;code&amp;gt;composer update&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Export updated config: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Breaking con guration with Git ====&lt;br /&gt;
* Setup: Installed standard profile&lt;br /&gt;
* Developer A on branch feature-a deletes Tags from &#039;Article&#039;.&lt;br /&gt;
** Resulting configuration change: 2 files are removed (field instance and field storage)&lt;br /&gt;
* Developer B on branch feature-b adds Tags to &#039;Basic page&#039;.&lt;br /&gt;
** Resulting configuration change: 1 file is added (field instance)&lt;br /&gt;
* Git will happily merge feature-a and feature-b into develop&lt;br /&gt;
* The resulting configuration is invalid:&lt;br /&gt;
** Tags has a field instance but no storage.&lt;br /&gt;
&#039;&#039;&#039;Takeaway: when merging check that the configuration is still valid by importing it.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3110</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3110"/>
		<updated>2017-05-29T16:38:38Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Long version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Check that the merged configuration is still valid by importing it!&#039;&#039;&#039;&lt;br /&gt;
 drush cim&lt;br /&gt;
&lt;br /&gt;
=== Safe Sequences ===&lt;br /&gt;
&lt;br /&gt;
The following are from the Config Split developers presentation at Drupal Dev Days Seville in March 2017. A PDF of the presentation slides can be [http://nuvole.org/sites/default/files/presentation-config_split.pdf downloaded] from the Nuvole. Information below is from slides 38-42.&lt;br /&gt;
&lt;br /&gt;
==== Collaboration issues ====&lt;br /&gt;
A careless workflow may result in:&lt;br /&gt;
* Losing all uncommitted work.&lt;br /&gt;
* Accidentally overwrite work by others.&lt;br /&gt;
* A configuration that looks OK at first sight but that is actually invalid for Drupal.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for sharing ====&lt;br /&gt;
#Export configuration: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Merge: &amp;lt;code&amp;gt;git pull&amp;lt;/code&amp;gt;&lt;br /&gt;
#Update dependencies: &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Import configuration: &amp;lt;code&amp;gt;drush cim&amp;lt;/code&amp;gt;&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== If you do it wrong... ====&lt;br /&gt;
* Import before Export: Deletes your work, no backup.&lt;br /&gt;
* Merge before Export: Export deletes previous work, solved by git.&lt;br /&gt;
* No &amp;lt;code&amp;gt;updb&amp;lt;/code&amp;gt; or after &amp;lt;code&amp;gt;cim&amp;lt;/code&amp;gt; (will be disallowed in the future): database might be broken.&lt;br /&gt;
* No &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;: may not have all the updated code.&lt;br /&gt;
* Merge before Commit: Manual labour on conflicts.&lt;br /&gt;
* Forgotten Import: Next export will not contain merged config, more difficult to solve in git.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for updating ====&lt;br /&gt;
#Update code: &amp;lt;code&amp;gt;composer update&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Export updated config: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Breaking con guration with Git ====&lt;br /&gt;
* Setup: Installed standard profile&lt;br /&gt;
* Developer A on branch feature-a deletes Tags from &#039;Article&#039;.&lt;br /&gt;
** Resulting configuration change: 2 files are removed (field instance and field storage)&lt;br /&gt;
* Developer B on branch feature-b adds Tags to &#039;Basic page&#039;.&lt;br /&gt;
** Resulting configuration change: 1 file is added (field instance)&lt;br /&gt;
* Git will happily merge feature-a and feature-b into develop&lt;br /&gt;
* The resulting configuration is invalid:&lt;br /&gt;
** Tags has a field instance but no storage.&lt;br /&gt;
&#039;&#039;&#039;Takeaway: when merging check that the configuration is still valid by importing it.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3109</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3109"/>
		<updated>2017-05-29T16:36:49Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Safe Sequences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
=== Safe Sequences ===&lt;br /&gt;
&lt;br /&gt;
The following are from the Config Split developers presentation at Drupal Dev Days Seville in March 2017. A PDF of the presentation slides can be [http://nuvole.org/sites/default/files/presentation-config_split.pdf downloaded] from the Nuvole. Information below is from slides 38-42.&lt;br /&gt;
&lt;br /&gt;
==== Collaboration issues ====&lt;br /&gt;
A careless workflow may result in:&lt;br /&gt;
* Losing all uncommitted work.&lt;br /&gt;
* Accidentally overwrite work by others.&lt;br /&gt;
* A configuration that looks OK at first sight but that is actually invalid for Drupal.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for sharing ====&lt;br /&gt;
#Export configuration: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Merge: &amp;lt;code&amp;gt;git pull&amp;lt;/code&amp;gt;&lt;br /&gt;
#Update dependencies: &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Import configuration: &amp;lt;code&amp;gt;drush cim&amp;lt;/code&amp;gt;&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== If you do it wrong... ====&lt;br /&gt;
* Import before Export: Deletes your work, no backup.&lt;br /&gt;
* Merge before Export: Export deletes previous work, solved by git.&lt;br /&gt;
* No &amp;lt;code&amp;gt;updb&amp;lt;/code&amp;gt; or after &amp;lt;code&amp;gt;cim&amp;lt;/code&amp;gt; (will be disallowed in the future): database might be broken.&lt;br /&gt;
* No &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;: may not have all the updated code.&lt;br /&gt;
* Merge before Commit: Manual labour on conflicts.&lt;br /&gt;
* Forgotten Import: Next export will not contain merged config, more difficult to solve in git.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for updating ====&lt;br /&gt;
#Update code: &amp;lt;code&amp;gt;composer update&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Export updated config: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Breaking con guration with Git ====&lt;br /&gt;
* Setup: Installed standard profile&lt;br /&gt;
* Developer A on branch feature-a deletes Tags from &#039;Article&#039;.&lt;br /&gt;
** Resulting configuration change: 2 files are removed (field instance and field storage)&lt;br /&gt;
* Developer B on branch feature-b adds Tags to &#039;Basic page&#039;.&lt;br /&gt;
** Resulting configuration change: 1 file is added (field instance)&lt;br /&gt;
* Git will happily merge feature-a and feature-b into develop&lt;br /&gt;
* The resulting configuration is invalid:&lt;br /&gt;
** Tags has a field instance but no storage.&lt;br /&gt;
&#039;&#039;&#039;Takeaway: when merging check that the configuration is still valid by importing it.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3108</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3108"/>
		<updated>2017-05-29T16:16:29Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Managing Development Environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
=== Safe Sequences ===&lt;br /&gt;
&lt;br /&gt;
The following are from the Config Split developers presentation at Drupal Dev Days Seville in March 2017. A PDF of the presentation slides can be [http://nuvole.org/sites/default/files/presentation-config_split.pdf downloaded] from the Nuvole. Information below is from slides 38-41.&lt;br /&gt;
&lt;br /&gt;
==== Collaboration issues ====&lt;br /&gt;
A careless workflow may result in:&lt;br /&gt;
* Losing all uncommitted work.&lt;br /&gt;
* Accidentally overwrite work by others.&lt;br /&gt;
* A configuration that looks OK at first sight but that is actually invalid for Drupal.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for sharing ====&lt;br /&gt;
#Export configuration: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Merge: &amp;lt;code&amp;gt;git pull&amp;lt;/code&amp;gt;&lt;br /&gt;
#Update dependencies: &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Import configuration: &amp;lt;code&amp;gt;drush cim&amp;lt;/code&amp;gt;&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== If you do it wrong... ====&lt;br /&gt;
* Import before Export: Deletes your work, no backup.&lt;br /&gt;
* Merge before Export: Export deletes previous work, solved by git.&lt;br /&gt;
* No &amp;lt;code&amp;gt;updb&amp;lt;/code&amp;gt; or after &amp;lt;code&amp;gt;cim&amp;lt;/code&amp;gt; (will be disallowed in the future): database might be broken.&lt;br /&gt;
* No &amp;lt;code&amp;gt;composer install&amp;lt;/code&amp;gt;: may not have all the updated code.&lt;br /&gt;
* Merge before Commit: Manual labour on conflicts.&lt;br /&gt;
* Forgotten Import: Next export will not contain merged config, more difficult to solve in git.&lt;br /&gt;
&lt;br /&gt;
==== The safe sequence for updating ====&lt;br /&gt;
#Update code: &amp;lt;code&amp;gt;composer update&amp;lt;/code&amp;gt;&lt;br /&gt;
#Run updates: &amp;lt;code&amp;gt;drush updb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Export updated config: &amp;lt;code&amp;gt;drush cex&amp;lt;/code&amp;gt;&lt;br /&gt;
#Commit&lt;br /&gt;
#Push: &amp;lt;code&amp;gt;git push&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3107</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3107"/>
		<updated>2017-05-29T15:49:37Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Long version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3106</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=3106"/>
		<updated>2017-05-29T15:48:10Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Short version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2782</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2782"/>
		<updated>2017-02-03T13:40:03Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Long version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
More information about why it is important to export your configuration before pulling configuration changes can be found in the &#039;&#039;&#039;Important notes&#039;&#039;&#039; section of [http://nuvole.org/blog/2014/aug/20/git-workflow-managing-drupal-8-configuration Git workflow for managing Drupal 8 configuration]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2781</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2781"/>
		<updated>2017-02-03T13:34:48Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Using Drush Aliases ==&lt;br /&gt;
Drush site aliases have been created for each development environment. To get a list of available Drush site aliases:&lt;br /&gt;
 drush sa&lt;br /&gt;
To see the information contained in a Drush site alias:&lt;br /&gt;
 drush sa &#039;&#039;&#039;@meos.d8&#039;&#039;&#039;&lt;br /&gt;
To list the &#039;&#039;&#039;st&#039;&#039;&#039;atus of a Drush site:&lt;br /&gt;
 drush st @meos.d8&lt;br /&gt;
Commands can be run using a drush alias even when you are not inside the folders of a Drupal website. To clear the registry on a Drupal 8 site from anywhere:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2780</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2780"/>
		<updated>2017-02-03T13:24:13Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Long version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First go to the &#039;&#039;&#039;webroot&#039;&#039;&#039; folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
or using your sites drush alias from anywhere on the dev01 server:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
&lt;br /&gt;
Next get the changes from the remote &#039;&#039;&#039;dev&#039;&#039;&#039; branch of the Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
In the &#039;&#039;&#039;webroot&#039;&#039;&#039; import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
or from anywhere using a drush site alias:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have changed versions from the &#039;&#039;&#039;webroot&#039;&#039;&#039; you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; updatedb&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
or with a Drush site alias&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.d8&#039;&#039;&#039; cr&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2779</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2779"/>
		<updated>2017-02-03T13:08:01Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Long version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First &lt;br /&gt;
&lt;br /&gt;
get the changes from the remote dev Git repository. On your Git Flow feature branch that you want to get changes from:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
In the webroot you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2778</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2778"/>
		<updated>2017-02-03T13:05:30Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Short version */  Added that you should export Drupal configuration before importing changes so they do not overwrite them.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the webroot folder (or use your sites drush site alias from anywhere) and first check that you do not have any configuration changes that will be overwritten with:&lt;br /&gt;
 drush cex&lt;br /&gt;
If you do have changes that should not be overwritten answer &#039;&#039;&#039;yes&#039;&#039;&#039; to have them exported.&lt;br /&gt;
Then in the project root do:&lt;br /&gt;
 git pull origin dev&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
In the webroot you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2772</id>
		<title>Slick Slider</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2772"/>
		<updated>2017-01-30T22:18:40Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Links====&lt;br /&gt;
[https://www.drupal.org/project/slick Drupal Modul Seite]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/kenwheeler/slick/ Slick Library auf GitHub]&lt;br /&gt;
&lt;br /&gt;
[http://kenwheeler.github.io/slick/ Slick Website]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Anleitung zum Gebrauch des Drupal Moduls====&lt;br /&gt;
[https://www.ostraining.com/blog/drupal/drupal-8-slick-slideshow/ online]&lt;br /&gt;
[[Medium: how_to_use_slick_drupal8.pdf]]&lt;br /&gt;
&lt;br /&gt;
Anmerkungen/Ergänzungen zu dieser Anleitung:&lt;br /&gt;
*Zu installierende Module:&lt;br /&gt;
**Slick&lt;br /&gt;
**Slick UI&lt;br /&gt;
**Slick Views&lt;br /&gt;
**Blazy&lt;br /&gt;
**&amp;lt;code&amp;gt;composer require &amp;quot;drupal/slick:&amp;gt;=1.0.0-rc1&amp;quot;  &amp;quot;drupal/slick_views:&amp;gt;=1.0.0-rc1&amp;quot; &amp;quot;drupal/blazy:&amp;gt;=1.0.0-rc1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;drush -y en slick slick_ui slick_views blazy blazy_ui&amp;lt;/code&amp;gt;&lt;br /&gt;
* To install the libraries&lt;br /&gt;
** Slick library:&lt;br /&gt;
*** Download Slick archive &amp;gt;= 1.6 from https://github.com/kenwheeler/slick/&lt;br /&gt;
*** Extract it as is, rename &#039;&#039;&#039;slick-master&#039;&#039;&#039; to &#039;&#039;&#039;slick&#039;&#039;&#039;, so the assets are at:&lt;br /&gt;
***:&amp;lt;pre&amp;gt;&lt;br /&gt;
***:: /libraries/slick/slick/slick.css&lt;br /&gt;
***:: /libraries/slick/slick/slick-theme.css (optional if a skin chosen)&lt;br /&gt;
***:: /libraries/slick/slick/slick.min.js&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Jqeasing&lt;br /&gt;
*** Download jqeasing from https://github.com/gdsmith/jquery.easing&lt;br /&gt;
*** Rename so it is available at:&lt;br /&gt;
   /libraries/easing/jquery.easing.min.js&lt;br /&gt;
This is CSS easing fallback for non-supporting browsers.&lt;br /&gt;
*Einstellungen: &amp;lt;code&amp;gt;admin/config/media/slick&amp;lt;/code&amp;gt;&lt;br /&gt;
**Default duplizieren (&amp;quot;Duplikat&amp;quot;)&lt;br /&gt;
**Breakpoints: Anzahl Breakpoints. Diese können im Tab &amp;quot;Responsive display&amp;quot; separat eingestellt werden. Einstellungen in diesem Tab überschreiben unterhalb des jeweiligen Breakpoints die Einstellungen aus dem Tab &amp;quot;Einstellungen&amp;quot;.&lt;br /&gt;
**Skin: gegebenes Slik-Erscheinungsbild auswählen (oder &amp;quot;keines&amp;quot;)&lt;br /&gt;
**&amp;quot;Zeilen&amp;quot; und &amp;quot;Slides per row&amp;quot;: nur relevant, wenn mehrere Zeilen in einem Row angezeigt werden sollen.&lt;br /&gt;
**&amp;quot;Slides to show&amp;quot;: wieviele Elemente auf einmal angezeigt werden sollen (bei kleineren Breakpoints reduzieren)&lt;br /&gt;
**&amp;quot;Slides to scroll&amp;quot;: um wieviele Elemente gescrollt wird (Desktop: gleichviel wie Slides to show, ansonsten eher 1)&lt;br /&gt;
**&amp;quot;Swipe&amp;quot; und &amp;quot;Swipe to scroll&amp;quot;: für Touch-Gesten (Desktop: eher ausschalten)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2771</id>
		<title>Slick Slider</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2771"/>
		<updated>2017-01-30T16:37:00Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Links====&lt;br /&gt;
[https://www.drupal.org/project/slick Drupal Modul Seite]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/kenwheeler/slick/ Slick Library auf GitHub]&lt;br /&gt;
&lt;br /&gt;
[http://kenwheeler.github.io/slick/ Slick Website]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Anleitung zum Gebrauch des Drupal Moduls====&lt;br /&gt;
[https://www.ostraining.com/blog/drupal/drupal-8-slick-slideshow/ online]&lt;br /&gt;
[[Medium: how_to_use_slick_drupal8.pdf]]&lt;br /&gt;
&lt;br /&gt;
Anmerkungen/Ergänzungen zu dieser Anleitung:&lt;br /&gt;
*Zu installierende Module:&lt;br /&gt;
**Slick&lt;br /&gt;
**Slick UI&lt;br /&gt;
**Slick Views&lt;br /&gt;
**Blazy&lt;br /&gt;
**&amp;lt;code&amp;gt;composer require &amp;quot;drupal/slick:&amp;gt;=1.0.0-rc1&amp;quot;  &amp;quot;drupal/slick_views:&amp;gt;=1.0.0-rc1&amp;quot; &amp;quot;drupal/blazy:&amp;gt;=1.0.0-rc1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;drush -y en slick slick_ui slick_views blazy blazy_ui&amp;lt;/code&amp;gt;&lt;br /&gt;
*Einstellungen: &amp;lt;code&amp;gt;admin/config/media/slick&amp;lt;/code&amp;gt;&lt;br /&gt;
**Default duplizieren (&amp;quot;Duplikat&amp;quot;)&lt;br /&gt;
**Breakpoints: Anzahl Breakpoints. Diese können im Tab &amp;quot;Responsive display&amp;quot; separat eingestellt werden. Einstellungen in diesem Tab überschreiben unterhalb des jeweiligen Breakpoints die Einstellungen aus dem Tab &amp;quot;Einstellungen&amp;quot;.&lt;br /&gt;
**Skin: gegebenes Slik-Erscheinungsbild auswählen (oder &amp;quot;keines&amp;quot;)&lt;br /&gt;
**&amp;quot;Zeilen&amp;quot; und &amp;quot;Slides per row&amp;quot;: nur relevant, wenn mehrere Zeilen in einem Row angezeigt werden sollen.&lt;br /&gt;
**&amp;quot;Slides to show&amp;quot;: wieviele Elemente auf einmal angezeigt werden sollen (bei kleineren Breakpoints reduzieren)&lt;br /&gt;
**&amp;quot;Slides to scroll&amp;quot;: um wieviele Elemente gescrollt wird (Desktop: gleichviel wie Slides to show, ansonsten eher 1)&lt;br /&gt;
**&amp;quot;Swipe&amp;quot; und &amp;quot;Swipe to scroll&amp;quot;: für Touch-Gesten (Desktop: eher ausschalten)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2770</id>
		<title>Slick Slider</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2770"/>
		<updated>2017-01-30T15:54:22Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Links====&lt;br /&gt;
[https://www.drupal.org/project/slick Drupal Modul Seite]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/kenwheeler/slick/ Slick Library auf GitHub]&lt;br /&gt;
&lt;br /&gt;
[http://kenwheeler.github.io/slick/ Slick Website]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Anleitung zum Gebrauch des Drupal Moduls====&lt;br /&gt;
[https://www.ostraining.com/blog/drupal/drupal-8-slick-slideshow/ online]&lt;br /&gt;
[[Medium: how_to_use_slick_drupal8.pdf]]&lt;br /&gt;
&lt;br /&gt;
Anmerkungen/Ergänzungen zu dieser Anleitung:&lt;br /&gt;
*Zu installierende Module:&lt;br /&gt;
**Slick&lt;br /&gt;
**Slick UI&lt;br /&gt;
**Slick Views&lt;br /&gt;
**Blazy&lt;br /&gt;
**&amp;lt;code&amp;gt;composer require &amp;quot;drupal/slick:&amp;gt;=1.0.0-rc1&amp;quot;  &amp;quot;drupal/slick_views:&amp;gt;=1.0.0-rc1&amp;quot; &amp;quot;drupal/blazy:&amp;gt;=1.0.0-rc1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;drush -y en slick slick_ui slick_views blazy&amp;lt;/code&amp;gt;&lt;br /&gt;
*Einstellungen: &amp;lt;code&amp;gt;admin/config/media/slick&amp;lt;/code&amp;gt;&lt;br /&gt;
**Default duplizieren (&amp;quot;Duplikat&amp;quot;)&lt;br /&gt;
**Breakpoints: Anzahl Breakpoints. Diese können im Tab &amp;quot;Responsive display&amp;quot; separat eingestellt werden. Einstellungen in diesem Tab überschreiben unterhalb des jeweiligen Breakpoints die Einstellungen aus dem Tab &amp;quot;Einstellungen&amp;quot;.&lt;br /&gt;
**Skin: gegebenes Slik-Erscheinungsbild auswählen (oder &amp;quot;keines&amp;quot;)&lt;br /&gt;
**&amp;quot;Zeilen&amp;quot; und &amp;quot;Slides per row&amp;quot;: nur relevant, wenn mehrere Zeilen in einem Row angezeigt werden sollen.&lt;br /&gt;
**&amp;quot;Slides to show&amp;quot;: wieviele Elemente auf einmal angezeigt werden sollen (bei kleineren Breakpoints reduzieren)&lt;br /&gt;
**&amp;quot;Slides to scroll&amp;quot;: um wieviele Elemente gescrollt wird (Desktop: gleichviel wie Slides to show, ansonsten eher 1)&lt;br /&gt;
**&amp;quot;Swipe&amp;quot; und &amp;quot;Swipe to scroll&amp;quot;: für Touch-Gesten (Desktop: eher ausschalten)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2769</id>
		<title>Slick Slider</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2769"/>
		<updated>2017-01-30T15:49:18Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Links====&lt;br /&gt;
[https://www.drupal.org/project/slick Drupal Modul Seite]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/kenwheeler/slick/ Slick Library auf GitHub]&lt;br /&gt;
&lt;br /&gt;
[http://kenwheeler.github.io/slick/ Slick Website]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Anleitung zum Gebrauch des Drupal Moduls====&lt;br /&gt;
[https://www.ostraining.com/blog/drupal/drupal-8-slick-slideshow/ online]&lt;br /&gt;
[[Medium: how_to_use_slick_drupal8.pdf]]&lt;br /&gt;
&lt;br /&gt;
Anmerkungen/Ergänzungen zu dieser Anleitung:&lt;br /&gt;
*Zu installierende Module:&lt;br /&gt;
**Slick&lt;br /&gt;
**Slick UI&lt;br /&gt;
**Slick Views&lt;br /&gt;
**Blazy&lt;br /&gt;
**&amp;lt;code&amp;gt;composer require &amp;quot;drupal/slick:&amp;gt;=1.0.0-rc1&amp;quot;  &amp;quot;drupal/slick_views:&amp;gt;=1.0.0-rc1&amp;quot; &amp;quot;drupal/blazy:&amp;gt;=1.0.0-rc1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;drush -y en slick slick_views blazy&amp;lt;/code&amp;gt;&lt;br /&gt;
*Einstellungen: &amp;lt;code&amp;gt;admin/config/media/slick&amp;lt;/code&amp;gt;&lt;br /&gt;
**Default duplizieren (&amp;quot;Duplikat&amp;quot;)&lt;br /&gt;
**Breakpoints: Anzahl Breakpoints. Diese können im Tab &amp;quot;Responsive display&amp;quot; separat eingestellt werden. Einstellungen in diesem Tab überschreiben unterhalb des jeweiligen Breakpoints die Einstellungen aus dem Tab &amp;quot;Einstellungen&amp;quot;.&lt;br /&gt;
**Skin: gegebenes Slik-Erscheinungsbild auswählen (oder &amp;quot;keines&amp;quot;)&lt;br /&gt;
**&amp;quot;Zeilen&amp;quot; und &amp;quot;Slides per row&amp;quot;: nur relevant, wenn mehrere Zeilen in einem Row angezeigt werden sollen.&lt;br /&gt;
**&amp;quot;Slides to show&amp;quot;: wieviele Elemente auf einmal angezeigt werden sollen (bei kleineren Breakpoints reduzieren)&lt;br /&gt;
**&amp;quot;Slides to scroll&amp;quot;: um wieviele Elemente gescrollt wird (Desktop: gleichviel wie Slides to show, ansonsten eher 1)&lt;br /&gt;
**&amp;quot;Swipe&amp;quot; und &amp;quot;Swipe to scroll&amp;quot;: für Touch-Gesten (Desktop: eher ausschalten)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2768</id>
		<title>Slick Slider</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Slick_Slider&amp;diff=2768"/>
		<updated>2017-01-30T15:47:59Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Anleitung zum Gebrauch des Drupal Moduls */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====Links====&lt;br /&gt;
[https://www.drupal.org/project/slick Drupal Modul Seite]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/kenwheeler/slick/ Slick Library auf GitHub]&lt;br /&gt;
&lt;br /&gt;
[http://kenwheeler.github.io/slick/ Slick Website]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Anleitung zum Gebrauch des Drupal Moduls====&lt;br /&gt;
[https://www.ostraining.com/blog/drupal/drupal-8-slick-slideshow/ online]&lt;br /&gt;
[[Medium: how_to_use_slick_drupal8.pdf]]&lt;br /&gt;
&lt;br /&gt;
Anmerkungen/Ergänzungen zu dieser Anleitung:&lt;br /&gt;
*Zu installierende Module:&lt;br /&gt;
**Slick&lt;br /&gt;
**Slick UI&lt;br /&gt;
**Slick Views&lt;br /&gt;
**Blazy&lt;br /&gt;
**&amp;lt;code&amp;gt;drush -y en slick slick_views blazy&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;composer require &amp;quot;drupal/slick:&amp;gt;=1.0.0-rc1&amp;quot;  &amp;quot;drupal/slick_views:&amp;gt;=1.0.0-rc1&amp;quot; &amp;quot;drupal/blazy:&amp;gt;=1.0.0-rc1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*Einstellungen: &amp;lt;code&amp;gt;admin/config/media/slick&amp;lt;/code&amp;gt;&lt;br /&gt;
**Default duplizieren (&amp;quot;Duplikat&amp;quot;)&lt;br /&gt;
**Breakpoints: Anzahl Breakpoints. Diese können im Tab &amp;quot;Responsive display&amp;quot; separat eingestellt werden. Einstellungen in diesem Tab überschreiben unterhalb des jeweiligen Breakpoints die Einstellungen aus dem Tab &amp;quot;Einstellungen&amp;quot;.&lt;br /&gt;
**Skin: gegebenes Slik-Erscheinungsbild auswählen (oder &amp;quot;keines&amp;quot;)&lt;br /&gt;
**&amp;quot;Zeilen&amp;quot; und &amp;quot;Slides per row&amp;quot;: nur relevant, wenn mehrere Zeilen in einem Row angezeigt werden sollen.&lt;br /&gt;
**&amp;quot;Slides to show&amp;quot;: wieviele Elemente auf einmal angezeigt werden sollen (bei kleineren Breakpoints reduzieren)&lt;br /&gt;
**&amp;quot;Slides to scroll&amp;quot;: um wieviele Elemente gescrollt wird (Desktop: gleichviel wie Slides to show, ansonsten eher 1)&lt;br /&gt;
**&amp;quot;Swipe&amp;quot; und &amp;quot;Swipe to scroll&amp;quot;: für Touch-Gesten (Desktop: eher ausschalten)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Git_Flow&amp;diff=2756</id>
		<title>Git Flow</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Git_Flow&amp;diff=2756"/>
		<updated>2017-01-26T09:40:04Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Git Flow is a collection of Git extensions to provide high-level repository operations for [http://nvie.com/posts/a-successful-git-branching-model/ Vincent Driessen&#039;s Git Flow branching model] ([http://nvie.com/files/Git-branching-model.pdf PDF Diagram of GitFlow branching]). Git Flow does not take away the ability to use the normal Git commands. It does group together commands needed to carry out a Git Flow branching method step without the user needing to remember all the multiple necessary steps needed to finish what should be a simple step.&lt;br /&gt;
&lt;br /&gt;
=== Vincent Driessen&#039;s Blog Post - &amp;quot;A successful Git branching model&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
Vincent Driessen&#039;s Blog Post on Tuesday, January 05, 2010 titled &amp;quot;[http://nvie.com/posts/a-successful-git-branching-model/ A successful Git branching model]&amp;quot; is origin of what is called to today the Git Flow branching model.&lt;br /&gt;
&lt;br /&gt;
=== Vincent Driessen Git Flow Diagram ===&lt;br /&gt;
[[Datei:git-model@2x.png|center|575px]]&lt;br /&gt;
&lt;br /&gt;
=== Getting started - Introduction to Git Flow ===&lt;br /&gt;
&lt;br /&gt;
For the best introduction to getting started with git flow, please read Jeff Kreeftmeijer&#039;s blog post:[http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/ Using git-flow to automate your git branching workflow]&lt;br /&gt;
&lt;br /&gt;
== Using Git Flow for Drupal Website Development ==&lt;br /&gt;
The Git Flow branching method can and is used by teams developing Drupal website. Depending on your deployment method some slight changes maybe needed. The names of the branches given in the original Git Flow method make sense for developing code but other names may make more sense when it is used for Drupal website development.&lt;br /&gt;
&lt;br /&gt;
=== Branch Names ===&lt;br /&gt;
One important thing to note is that the branch names are only that names. There is nothing special about the branch names and you can setup the names to be what you want. I tried to use a set of branch names that were short but also described what the branch was used for in Drupal web development. The original names may make more sense when developing software code. I use the names from Shawn DeArmond&#039;s presentation at Bad Camp 2012 called &amp;quot;[ Development Workflow With Git]&amp;quot;([http://dearmond.net/blog/2012/11/drupal-development-workflow-git Blog Post]) ([http://dearmond.net/sites/dearmond.net/files/media/2012/11/dev_workflow_with_git.pdf PDF of Slides (slide 23 has the branch names)])([https://vimeo.com/52891166 Video of Presentation]) as they made the most sense of any I saw. Here is a list of the branch names that I use with a reference to the branch name that Vincent used in his original article.&lt;br /&gt;
&lt;br /&gt;
==== dev ==== &lt;br /&gt;
(Originally develop) - This is the branch were development work is started from and merge back into.&lt;br /&gt;
==== test ====&lt;br /&gt;
This is the branch where code ideally gets tested in a environment identical to where it will be used live. In Drupal this is where the the code from the dev branch and the database from the live site can be tested together to see if things work as expected. This is an additional branch that is pushed to for deployment to the testing server. This branch is not in the original Git Flow branching method.&lt;br /&gt;
==== live ====&lt;br /&gt;
(Originally master) - This is the branch that is used on the live website. Pushing to this branch and then deploying results in the code going live.&lt;br /&gt;
&lt;br /&gt;
==== feature branches ====&lt;br /&gt;
Feature branches are checked out from the dev branch. Feature branches are merged back into the dev branch when the work is finished and deleted. These branches are normally only in a developer&#039;s development environment. If other developers need to have this code before it is finished Git Flow has a publish method that allows pushing the feature branch to the remote so other developers can then have access to it.&lt;br /&gt;
==== hotfix branches ====&lt;br /&gt;
Hotfix branches are checked out from the live branch to fix a critical bug in the code on the live site. When finished, the hotfix branch should be merged to the test branch for testing. If all is well then the normal &amp;lt;code&amp;gt;git flow hotfix finish&amp;lt;/code&amp;gt; command can be used to merge it back into the live branch, and also merge it into the dev branch, so that the hotfix is included in the next release as well.&lt;br /&gt;
==== bugfix branches ====&lt;br /&gt;
Bugfix branches are checked out from the dev branch to fix bugs in the development branch. When finished they are merged back into the dev branches Since late in 2012 the original Git Flow repository by Vincent Driessen on Github is no longer being updated. Peter van der Does started a new repository on Github in early 2012 called gitflow-avh. Ubuntu and other Linuxes have switched to this repository for the packages they include for git-flow. Bugfix branches are one of the new features that was added in the git-flow-avh (A VirtualHome).&lt;br /&gt;
==== release branches ====&lt;br /&gt;
Release branches are used for both major and minor releases for stabilisation before a release. Release branches are taken off the dev branch then merged to both dev and live branches. Finally the live branch is tagged with the released version.&lt;br /&gt;
==== support branches ====&lt;br /&gt;
Support branches are not really covered in GitFlow, but are essential if you need to maintain multiple major versions at the same time. You could use support branches for supporting minor releases as well. Support branches were added in git-flow-avh.&lt;br /&gt;
&lt;br /&gt;
=== Git Flow Branch Examples ===&lt;br /&gt;
Good images of how the different types of Git Flow branch methods work can be seen in the [https://gitversion.readthedocs.io/en/latest/git-branching-strategies/gitflow-examples/ GitFlow Examples in the Git Version documentation]. These images can help to give a very quick visual understanding of how the Git Flow branching method works.&lt;br /&gt;
&lt;br /&gt;
=== Git Flow Commands ===&lt;br /&gt;
See the documentation at the [https://github.com/petervanderdoes/gitflow-avh GitHub Repository for Git Flow AVH] for more information.&lt;br /&gt;
&lt;br /&gt;
==== Git Flow Initialization of new repository ====&lt;br /&gt;
To create a new git repo or to initialize the repository for the Git Flow commands run: &lt;br /&gt;
 git flow init&lt;br /&gt;
&lt;br /&gt;
In answer to the question: &amp;quot;Branch name for production releases: [master]&amp;quot; &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In answer to the question: &amp;quot;Branch name for &amp;quot;next release&amp;quot; development: [develop]&amp;quot; &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To all other questions, accept the default answer.&lt;br /&gt;
&lt;br /&gt;
==== Git Flow List Branches ====&lt;br /&gt;
To list all branches of a type run:&lt;br /&gt;
 git flow &amp;lt;&#039;&#039;&#039;branch type name&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To list feature branches:&lt;br /&gt;
 git flow feature&lt;br /&gt;
&lt;br /&gt;
To list hotfix branches:&lt;br /&gt;
 git flow hotfix&lt;br /&gt;
&lt;br /&gt;
==== Git Flow Start Branch ====&lt;br /&gt;
To start a branch of a type run:&lt;br /&gt;
 git flow &amp;lt;&#039;&#039;&#039;branch type name&#039;&#039;&#039;&amp;gt; start &amp;lt;name&amp;gt; [&amp;lt;base&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;&amp;lt;base&amp;gt;&#039;&#039;&#039; arg must be a branch, when omitted it defaults to the default for that Git Flow branch type. See the following table for the default starting branch for the Git Flow branch types.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Git Flow Branch Type&lt;br /&gt;
! Default Starting Branch&lt;br /&gt;
|-&lt;br /&gt;
|feature&lt;br /&gt;
|dev&lt;br /&gt;
|-&lt;br /&gt;
|release&lt;br /&gt;
|dev&lt;br /&gt;
|-&lt;br /&gt;
|hotfix&lt;br /&gt;
|live&lt;br /&gt;
|-&lt;br /&gt;
|bugfix&lt;br /&gt;
|dev&lt;br /&gt;
|-&lt;br /&gt;
|support&lt;br /&gt;
|live&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To start a feature branch:&lt;br /&gt;
 git flow start feature&lt;br /&gt;
&lt;br /&gt;
To start a bugfix branch:&lt;br /&gt;
 git flow start bugfix&lt;br /&gt;
&lt;br /&gt;
==== Git Flow Finish Branch ====&lt;br /&gt;
To finish a branch of a type run:&lt;br /&gt;
 git flow &amp;lt;&#039;&#039;&#039;branch type name&#039;&#039;&#039;&amp;gt; finish &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;&amp;lt;name&amp;gt;&#039;&#039;&#039; arg must be a branch, when omitted it defaults to the current branch if it is of the correct type.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!  Git Flow Branch Type&lt;br /&gt;
! Default Branch(es) committed to on finish&lt;br /&gt;
|-&lt;br /&gt;
|feature&lt;br /&gt;
|dev&lt;br /&gt;
|-&lt;br /&gt;
|release&lt;br /&gt;
|dev, live&lt;br /&gt;
|-&lt;br /&gt;
|hotfix&lt;br /&gt;
|dev, live&lt;br /&gt;
|-&lt;br /&gt;
|bugfix&lt;br /&gt;
|dev&lt;br /&gt;
|-&lt;br /&gt;
|support&lt;br /&gt;
|dev, live&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To finish a bugfix branch:&lt;br /&gt;
 git flow bugfix finish&lt;br /&gt;
&lt;br /&gt;
To finish a support branch:&lt;br /&gt;
 git flow support finish&lt;br /&gt;
&lt;br /&gt;
==== Git Flow Delete Branch ====&lt;br /&gt;
When a branch is finished by default it is deleted. This command is only needed if it is decided to not commit a branch.&lt;br /&gt;
&lt;br /&gt;
To delete a branch of a type run:&lt;br /&gt;
 git flow &amp;lt;&#039;&#039;&#039;branch type name&#039;&#039;&#039;&amp;gt; delete&lt;br /&gt;
&lt;br /&gt;
To delete a feature branch:&lt;br /&gt;
 git flow feature delete&lt;br /&gt;
&lt;br /&gt;
To delete a bugfix branch:&lt;br /&gt;
 git flow bugfix delete&lt;br /&gt;
&lt;br /&gt;
==== Share features with others - git flow feature publish ====&lt;br /&gt;
You can easily publish a feature you are working on. The reason can be to allow other programmers to work on it or to access it from another machine. The publish/track feature of gitflow simplify the creation of a remote branch and its tracking.&lt;br /&gt;
&lt;br /&gt;
When you want to publish a feature just use:&lt;br /&gt;
 git flow feature publish &amp;lt;name&amp;gt;&lt;br /&gt;
or, if you already are on the &#039;&#039;&#039;feature/&amp;lt;name&amp;gt;&#039;&#039;&#039; branch, just issue:&lt;br /&gt;
 git flow feature publish&lt;br /&gt;
Now if you execute &amp;lt;code&amp;gt;git branch -avv&amp;lt;/code&amp;gt; you will see that your branch feature/&amp;lt;name&amp;gt; tracks [origin/feature/&amp;lt;name&amp;gt;]. To track the same remote branch in another clone of the same repository use:&lt;br /&gt;
 git flow feature track &amp;lt;name&amp;gt;&lt;br /&gt;
This will create a local feature feature/&amp;lt;name&amp;gt; that tracks the same remote branch as the original one, that is origin/feature/&amp;lt;name&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
When one developer (depending on your work flow) finishes working on the feature he or she can issue git flow feature finish &amp;lt;name&amp;gt; and this will automatically delete the remote branch. All other developers shall then run:&lt;br /&gt;
git flow feature delete &amp;lt;name&amp;gt;&lt;br /&gt;
to get rid of the local feature that tracks a remote branch that no more exist.&lt;br /&gt;
&lt;br /&gt;
=== Using Hooks and Filters ===&lt;br /&gt;
&lt;br /&gt;
For a wide variety of commands hooks or filters can be called before and after the Git Flow commands.&lt;br /&gt;
The files should be placed in .git/hooks&lt;br /&gt;
In the [https://github.com/petervanderdoes/gitflow-avh/tree/master/hooks directory hooks] of the [https://github.com/petervanderdoes/gitflow-avh git-flow-avh project] you can find examples of all the hooks available.&lt;br /&gt;
=== Git Flow Cheat Sheet ===&lt;br /&gt;
Daniel Kummer&#039;s [http://danielkummer.github.io/git-flow-cheatsheet/ Git Flow Cheatsheet] is a great illustrated guide to Git Flow.&lt;br /&gt;
[[Datei:Git_Flow_Cheatsheet.png|mini|right|Daniel Kummer&#039;s Git Flow Cheatsheet]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Datei:Git_Flow_Cheatsheet.png&amp;diff=2755</id>
		<title>Datei:Git Flow Cheatsheet.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Datei:Git_Flow_Cheatsheet.png&amp;diff=2755"/>
		<updated>2017-01-26T09:34:54Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Screenshot from http://danielkummer.github.io/git-flow-cheatsheet/ of the Git Flow Cheatsheet.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot from http://danielkummer.github.io/git-flow-cheatsheet/ of the Git Flow Cheatsheet.&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2754</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2754"/>
		<updated>2017-01-25T12:39:12Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Added short version of the commands to make it easier to copy and paste.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
=== Short version ===&lt;br /&gt;
First go to the project folder and do:&lt;br /&gt;
 git pull&lt;br /&gt;
 composer install&lt;br /&gt;
Then in the Drupal webroot do:&lt;br /&gt;
 drush cim&lt;br /&gt;
 drush updatedb&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
=== Long version ===&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
In the webroot you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2753</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2753"/>
		<updated>2017-01-25T12:36:45Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Import configuration changes into your developer environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
In the webroot you will also need to run the database update to make changes to the database that newer version of modules require.&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2752</id>
		<title>Composer</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2752"/>
		<updated>2017-01-23T20:54:53Z</updated>

		<summary type="html">&lt;p&gt;Frederick: fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Composer - The PHP dependency manager =&lt;br /&gt;
&lt;br /&gt;
The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies as it is not a dependency manager.&lt;br /&gt;
&lt;br /&gt;
== Install the Drupal 8 Lightning distribution with Composer ==&lt;br /&gt;
&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; --no-interaction&lt;br /&gt;
Where &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; is the name of the project folder. Inside the project folder will be the webroot folder called &#039;&#039;&#039;docroot&#039;&#039;&#039;. This is the folder to server with the web server.&lt;br /&gt;
&lt;br /&gt;
ie. To install a project called &#039;&#039;&#039;meos&#039;&#039;&#039; on the &#039;&#039;&#039;dev01&#039;&#039;&#039; server, first go to &amp;lt;code&amp;gt;/var/www&amp;lt;/code&amp;gt; then run:&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;meos&#039;&#039;&#039; --no-interaction&lt;br /&gt;
&lt;br /&gt;
For more information about the Lightning Distribution see its [https://www.drupal.org/project/lightning Drupal.org project page] or [https://github.com/acquia/lightning-project Github page].&lt;br /&gt;
&lt;br /&gt;
== Update Composer Managed Drupal Site (core, modules, themes, and libraries) ==&lt;br /&gt;
To update your Drupal site that is managed with Composer, first in a terminal go to the project directory (Not the same as the webroot directory. It is one directory below it). Then run:&lt;br /&gt;
 composer update&lt;br /&gt;
Then run&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; For sites that use the Drupal 8 version of the Lightning distribution(or other distributions too), do not use `drush pm-update` or `drush up` to update Lightning! Lightning includes specific, vetted, pre-tested versions of modules, and occasionally patches for those modules (and Drupal core). Drush&#039;s updater totally disregards all of that and &#039;&#039;&#039;may therefore break your site&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Composer Configuration ==&lt;br /&gt;
List configuration from the composer.json file in the current folder.&lt;br /&gt;
 composer config --list&lt;br /&gt;
&lt;br /&gt;
=== Modifying Repositories ===&lt;br /&gt;
The &#039;&#039;&#039;composer config&#039;&#039;&#039; command also supports making changes to the repositories section by using it the following way:&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo vcs https://github.com/foo/bar&lt;br /&gt;
&lt;br /&gt;
If your repository requires more configuration options, you can instead pass its JSON representation :&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo &#039;{&amp;quot;type&amp;quot;: &amp;quot;vcs&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;http://svn.example.org/my-project/&amp;quot;, &amp;quot;trunk-path&amp;quot;: &amp;quot;master&amp;quot;}&#039;&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/03-cli.md#config &#039;&#039;&#039;composer config&#039;&#039;&#039; commands].&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/04-schema.md#repositories &#039;&#039;&#039;composer config repositories&#039;&#039;&#039; commands].&lt;br /&gt;
== Creating your very own Composer Package ==&lt;br /&gt;
([http://knpuniversity.com/screencast/question-answer-day/create-composer-package Info from KNP University])&lt;br /&gt;
# Put your Composer package project in a git repository (example repository https://github.com/weaverryan/derp-dangerzone used in examples)&lt;br /&gt;
# Give your Library a composer.json File&lt;br /&gt;
Add a &#039;&#039;&#039;composer.json&#039;&#039;&#039; file in the library itself. This is really easy. Created a new &#039;&#039;&#039;composer.json&#039;&#039;&#039; file at the root of the git project. Composer will look at your branches and tags to get the version and source keys.&lt;br /&gt;
&lt;br /&gt;
In other words, create a composer.json file in your git repository root that looks similar to this:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;&#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
    &amp;quot;autoload&amp;quot;: {&lt;br /&gt;
        &amp;quot;psr-0&amp;quot; : {&lt;br /&gt;
            &amp;quot;&#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039;&amp;quot; : &amp;quot;src&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039; is the name of the git repository and &lt;br /&gt;
where &#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039; is the [https://getcomposer.org/doc/04-schema.md#psr-0 PSR-0 namespace]. This namespace is directly related to the folders in the &#039;&#039;&#039;src&#039;&#039;&#039; folder containing your project.&lt;br /&gt;
&lt;br /&gt;
To add this repository to your composer project you can run:&lt;br /&gt;
 &lt;br /&gt;
 composer config repositories.&#039;&#039;&#039;zeberli&#039;&#039;&#039; vcs https://github.com/weaverryan/derp-dangerzone&lt;br /&gt;
Where &#039;&#039;&#039;zeberli&#039;&#039;&#039; in a unique key identifying this repository in the composer.json file and the URL is the address of the git repository containing your project.&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2751</id>
		<title>Composer</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2751"/>
		<updated>2017-01-23T20:54:23Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Added information on how to update composer managed sites&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Composer - The PHP dependency manager =&lt;br /&gt;
&lt;br /&gt;
The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies as it is not a dependency manager.&lt;br /&gt;
&lt;br /&gt;
== Install the Drupal 8 Lightning distribution with Composer ==&lt;br /&gt;
&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; --no-interaction&lt;br /&gt;
Where &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; is the name of the project folder. Inside the project folder will be the webroot folder called &#039;&#039;&#039;docroot&#039;&#039;&#039;. This is the folder to server with the web server.&lt;br /&gt;
&lt;br /&gt;
ie. To install a project called &#039;&#039;&#039;meos&#039;&#039;&#039; on the &#039;&#039;&#039;dev01&#039;&#039;&#039; server, first go to &amp;lt;code&amp;gt;/var/www&amp;lt;/code&amp;gt; then run:&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;meos&#039;&#039;&#039; --no-interaction&lt;br /&gt;
&lt;br /&gt;
For more information about the Lightning Distribution see its [https://www.drupal.org/project/lightning Drupal.org project page] or [https://github.com/acquia/lightning-project Github page].&lt;br /&gt;
&lt;br /&gt;
== Update Composer Managed Drupal Site *core, modules, themes, and libraries) ==&lt;br /&gt;
To update your Drupal site that is managed with Composer, first in a terminal go to the project directory (Not the same as the webroot directory. It is one directory below it). Then run:&lt;br /&gt;
 composer update&lt;br /&gt;
Then run&lt;br /&gt;
 drush updatedb&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; For sites that use the Drupal 8 version of the Lightning distribution(or other distributions too), do not use `drush pm-update` or `drush up` to update Lightning! Lightning includes specific, vetted, pre-tested versions of modules, and occasionally patches for those modules (and Drupal core). Drush&#039;s updater totally disregards all of that and &#039;&#039;&#039;may therefore break your site&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Composer Configuration ==&lt;br /&gt;
List configuration from the composer.json file in the current folder.&lt;br /&gt;
 composer config --list&lt;br /&gt;
&lt;br /&gt;
=== Modifying Repositories ===&lt;br /&gt;
The &#039;&#039;&#039;composer config&#039;&#039;&#039; command also supports making changes to the repositories section by using it the following way:&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo vcs https://github.com/foo/bar&lt;br /&gt;
&lt;br /&gt;
If your repository requires more configuration options, you can instead pass its JSON representation :&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo &#039;{&amp;quot;type&amp;quot;: &amp;quot;vcs&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;http://svn.example.org/my-project/&amp;quot;, &amp;quot;trunk-path&amp;quot;: &amp;quot;master&amp;quot;}&#039;&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/03-cli.md#config &#039;&#039;&#039;composer config&#039;&#039;&#039; commands].&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/04-schema.md#repositories &#039;&#039;&#039;composer config repositories&#039;&#039;&#039; commands].&lt;br /&gt;
== Creating your very own Composer Package ==&lt;br /&gt;
([http://knpuniversity.com/screencast/question-answer-day/create-composer-package Info from KNP University])&lt;br /&gt;
# Put your Composer package project in a git repository (example repository https://github.com/weaverryan/derp-dangerzone used in examples)&lt;br /&gt;
# Give your Library a composer.json File&lt;br /&gt;
Add a &#039;&#039;&#039;composer.json&#039;&#039;&#039; file in the library itself. This is really easy. Created a new &#039;&#039;&#039;composer.json&#039;&#039;&#039; file at the root of the git project. Composer will look at your branches and tags to get the version and source keys.&lt;br /&gt;
&lt;br /&gt;
In other words, create a composer.json file in your git repository root that looks similar to this:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;&#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
    &amp;quot;autoload&amp;quot;: {&lt;br /&gt;
        &amp;quot;psr-0&amp;quot; : {&lt;br /&gt;
            &amp;quot;&#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039;&amp;quot; : &amp;quot;src&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039; is the name of the git repository and &lt;br /&gt;
where &#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039; is the [https://getcomposer.org/doc/04-schema.md#psr-0 PSR-0 namespace]. This namespace is directly related to the folders in the &#039;&#039;&#039;src&#039;&#039;&#039; folder containing your project.&lt;br /&gt;
&lt;br /&gt;
To add this repository to your composer project you can run:&lt;br /&gt;
 &lt;br /&gt;
 composer config repositories.&#039;&#039;&#039;zeberli&#039;&#039;&#039; vcs https://github.com/weaverryan/derp-dangerzone&lt;br /&gt;
Where &#039;&#039;&#039;zeberli&#039;&#039;&#039; in a unique key identifying this repository in the composer.json file and the URL is the address of the git repository containing your project.&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2750</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2750"/>
		<updated>2017-01-23T16:24:04Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Fixed syntax on cex --message option an equal sign is need.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message=&amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2749</id>
		<title>Hauptseite</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2749"/>
		<updated>2017-01-23T10:48:15Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Drupal 8 Website developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Webdesign =&lt;br /&gt;
==Brackets==&lt;br /&gt;
[[Brackets]]&lt;br /&gt;
=== CSS ===&lt;br /&gt;
* [[CSS3]]&lt;br /&gt;
* [[CSS3 Andi]]&lt;br /&gt;
* [[Pfeile mit CSS gestalten]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal8]] ==&lt;br /&gt;
=== [[Drupal 8 Website Developer Environments]] ===&lt;br /&gt;
* [[Verzeichnisstruktur und Inhalte]]&lt;br /&gt;
* [[Modulentwicklung Dateien]]&lt;br /&gt;
* [[Modulentwicklung Entwicklungsumgebung]]&lt;br /&gt;
* [[Theme Preprocessors erstellen]]&lt;br /&gt;
* [[twig-Links]]&lt;br /&gt;
&lt;br /&gt;
=== Drupal 8 Website Development ===&lt;br /&gt;
==== Composer ====&lt;br /&gt;
[[Composer|Composer the PHP Dependency Manager]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal]] ==&lt;br /&gt;
* [[Drupal Installation und Grundkonfiguration]]&lt;br /&gt;
* [[Login Blockiert Password]]&lt;br /&gt;
* [[Mehrsprachigkeit/Multilanguage]]&lt;br /&gt;
===Design===&lt;br /&gt;
* [[Drupal 7 Commerce]]&lt;br /&gt;
* [[Retina Display]]&lt;br /&gt;
* [[Menü Theming]]&lt;br /&gt;
* [[Theme und Theming]]&lt;br /&gt;
* [[Drupal 7 fields]]&lt;br /&gt;
* [[page.tpl.php]]&lt;br /&gt;
* [[node.tpl.php]]&lt;br /&gt;
* [[html.tpl.php]]&lt;br /&gt;
* [[Modul &amp;quot;Basic Cart&amp;quot;]]&lt;br /&gt;
===Konventionen===&lt;br /&gt;
* [[Konventionen]] Programmierhandbuch&lt;br /&gt;
===online===&lt;br /&gt;
[[Webseite online stellen]]&lt;br /&gt;
====Übersetzung====&lt;br /&gt;
* [[Drupal 7 übersetzung]]&lt;br /&gt;
&lt;br /&gt;
== [[Inhalt]] ==&lt;br /&gt;
* [[Mailnachrichten übersetzen]]&lt;br /&gt;
* [[Drupal 7 Update]] -&amp;gt; patch&lt;br /&gt;
===Migration Drupal===&lt;br /&gt;
* [[Leitfaden Drupal 6 auf Drupal 7]]&lt;br /&gt;
&lt;br /&gt;
===Module===&lt;br /&gt;
* [[Modules]]&lt;br /&gt;
* [[Multidomain]]&lt;br /&gt;
* [[Drupal 7 Patches]]&lt;br /&gt;
&lt;br /&gt;
===Diverses===&lt;br /&gt;
* [[Eclipse PDT]]&lt;br /&gt;
* [[Google Maps]]&lt;br /&gt;
* [[Social Network Facebook / Twitter]]&lt;br /&gt;
* [[Urheberrechte, Copyright]]&lt;br /&gt;
&lt;br /&gt;
== [[jQuery]] / JavaScript ==&lt;br /&gt;
== [[Git]] ==&lt;br /&gt;
=== [[Git Flow]] ===&lt;br /&gt;
&lt;br /&gt;
==[[Hosting]] - Ubuntu==&lt;br /&gt;
==[[OwnCloud]]==&lt;br /&gt;
==Design==&lt;br /&gt;
* [[Web-Icons in Vektor]]&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Newsletter==&lt;br /&gt;
* [[Newsletter Standarts für Outlook]]&lt;br /&gt;
* [[Newsletter Benutzer Einrichten]]&lt;br /&gt;
* [[Externe Scripte]]&lt;br /&gt;
* [[Formulare]]&lt;br /&gt;
&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Podcast-Feed==&lt;br /&gt;
* [[iTunes-Feed]]&lt;br /&gt;
&lt;br /&gt;
=[[Bildbearbeitung]]=&lt;br /&gt;
=[[corixFLEX]]=&lt;br /&gt;
&lt;br /&gt;
= Support =&lt;br /&gt;
===[[Support]]===&lt;br /&gt;
===[[Programme]]===&lt;br /&gt;
===[[Netzwerk]]===&lt;br /&gt;
===[[System]]===&lt;br /&gt;
&lt;br /&gt;
=Diverses=&lt;br /&gt;
* [[Website offline speichern]]&lt;br /&gt;
* [[VLC]]&lt;br /&gt;
* [[Klassennetz]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_developer_environments&amp;diff=2748</id>
		<title>Drupal 8 Website developer environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_developer_environments&amp;diff=2748"/>
		<updated>2017-01-23T10:47:55Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Frederick verschob die Seite Drupal 8 Website developer environments nach Drupal 8 Website Developer Environments: Capitalization of Title&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#WEITERLEITUNG [[Drupal 8 Website Developer Environments]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2747</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2747"/>
		<updated>2017-01-23T10:47:55Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Frederick verschob die Seite Drupal 8 Website developer environments nach Drupal 8 Website Developer Environments: Capitalization of Title&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2746</id>
		<title>Hauptseite</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2746"/>
		<updated>2017-01-23T10:47:17Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Webdesign =&lt;br /&gt;
==Brackets==&lt;br /&gt;
[[Brackets]]&lt;br /&gt;
=== CSS ===&lt;br /&gt;
* [[CSS3]]&lt;br /&gt;
* [[CSS3 Andi]]&lt;br /&gt;
* [[Pfeile mit CSS gestalten]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal8]] ==&lt;br /&gt;
=== [[Drupal 8 Website developer environments]] ===&lt;br /&gt;
* [[Verzeichnisstruktur und Inhalte]]&lt;br /&gt;
* [[Modulentwicklung Dateien]]&lt;br /&gt;
* [[Modulentwicklung Entwicklungsumgebung]]&lt;br /&gt;
* [[Theme Preprocessors erstellen]]&lt;br /&gt;
* [[twig-Links]]&lt;br /&gt;
=== Drupal 8 Website Development ===&lt;br /&gt;
==== Composer ====&lt;br /&gt;
[[Composer|Composer the PHP Dependency Manager]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal]] ==&lt;br /&gt;
* [[Drupal Installation und Grundkonfiguration]]&lt;br /&gt;
* [[Login Blockiert Password]]&lt;br /&gt;
* [[Mehrsprachigkeit/Multilanguage]]&lt;br /&gt;
===Design===&lt;br /&gt;
* [[Drupal 7 Commerce]]&lt;br /&gt;
* [[Retina Display]]&lt;br /&gt;
* [[Menü Theming]]&lt;br /&gt;
* [[Theme und Theming]]&lt;br /&gt;
* [[Drupal 7 fields]]&lt;br /&gt;
* [[page.tpl.php]]&lt;br /&gt;
* [[node.tpl.php]]&lt;br /&gt;
* [[html.tpl.php]]&lt;br /&gt;
* [[Modul &amp;quot;Basic Cart&amp;quot;]]&lt;br /&gt;
===Konventionen===&lt;br /&gt;
* [[Konventionen]] Programmierhandbuch&lt;br /&gt;
===online===&lt;br /&gt;
[[Webseite online stellen]]&lt;br /&gt;
====Übersetzung====&lt;br /&gt;
* [[Drupal 7 übersetzung]]&lt;br /&gt;
&lt;br /&gt;
== [[Inhalt]] ==&lt;br /&gt;
* [[Mailnachrichten übersetzen]]&lt;br /&gt;
* [[Drupal 7 Update]] -&amp;gt; patch&lt;br /&gt;
===Migration Drupal===&lt;br /&gt;
* [[Leitfaden Drupal 6 auf Drupal 7]]&lt;br /&gt;
&lt;br /&gt;
===Module===&lt;br /&gt;
* [[Modules]]&lt;br /&gt;
* [[Multidomain]]&lt;br /&gt;
* [[Drupal 7 Patches]]&lt;br /&gt;
&lt;br /&gt;
===Diverses===&lt;br /&gt;
* [[Eclipse PDT]]&lt;br /&gt;
* [[Google Maps]]&lt;br /&gt;
* [[Social Network Facebook / Twitter]]&lt;br /&gt;
* [[Urheberrechte, Copyright]]&lt;br /&gt;
&lt;br /&gt;
== [[jQuery]] / JavaScript ==&lt;br /&gt;
== [[Git]] ==&lt;br /&gt;
=== [[Git Flow]] ===&lt;br /&gt;
&lt;br /&gt;
==[[Hosting]] - Ubuntu==&lt;br /&gt;
==[[OwnCloud]]==&lt;br /&gt;
==Design==&lt;br /&gt;
* [[Web-Icons in Vektor]]&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Newsletter==&lt;br /&gt;
* [[Newsletter Standarts für Outlook]]&lt;br /&gt;
* [[Newsletter Benutzer Einrichten]]&lt;br /&gt;
* [[Externe Scripte]]&lt;br /&gt;
* [[Formulare]]&lt;br /&gt;
&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Podcast-Feed==&lt;br /&gt;
* [[iTunes-Feed]]&lt;br /&gt;
&lt;br /&gt;
=[[Bildbearbeitung]]=&lt;br /&gt;
=[[corixFLEX]]=&lt;br /&gt;
&lt;br /&gt;
= Support =&lt;br /&gt;
===[[Support]]===&lt;br /&gt;
===[[Programme]]===&lt;br /&gt;
===[[Netzwerk]]===&lt;br /&gt;
===[[System]]===&lt;br /&gt;
&lt;br /&gt;
=Diverses=&lt;br /&gt;
* [[Website offline speichern]]&lt;br /&gt;
* [[VLC]]&lt;br /&gt;
* [[Klassennetz]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2745</id>
		<title>Hauptseite</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2745"/>
		<updated>2017-01-23T10:44:44Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Change Drupal 8 Website Developer Environments to third level title so it is in the outline and easier to find.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Webdesign =&lt;br /&gt;
==Brackets==&lt;br /&gt;
[[Brackets]]&lt;br /&gt;
=== CSS ===&lt;br /&gt;
* [[CSS3]]&lt;br /&gt;
* [[CSS3 Andi]]&lt;br /&gt;
* [[Pfeile mit CSS gestalten]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal8]] ==&lt;br /&gt;
=== [[Drupal 8 Website Developer Environments]] ===&lt;br /&gt;
* [[Verzeichnisstruktur und Inhalte]]&lt;br /&gt;
* [[Modulentwicklung Dateien]]&lt;br /&gt;
* [[Modulentwicklung Entwicklungsumgebung]]&lt;br /&gt;
* [[Theme Preprocessors erstellen]]&lt;br /&gt;
* [[twig-Links]]&lt;br /&gt;
=== Drupal 8 Website Development ===&lt;br /&gt;
==== Composer ====&lt;br /&gt;
[[Composer|Composer the PHP Dependency Manager]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal]] ==&lt;br /&gt;
* [[Drupal Installation und Grundkonfiguration]]&lt;br /&gt;
* [[Login Blockiert Password]]&lt;br /&gt;
* [[Mehrsprachigkeit/Multilanguage]]&lt;br /&gt;
===Design===&lt;br /&gt;
* [[Drupal 7 Commerce]]&lt;br /&gt;
* [[Retina Display]]&lt;br /&gt;
* [[Menü Theming]]&lt;br /&gt;
* [[Theme und Theming]]&lt;br /&gt;
* [[Drupal 7 fields]]&lt;br /&gt;
* [[page.tpl.php]]&lt;br /&gt;
* [[node.tpl.php]]&lt;br /&gt;
* [[html.tpl.php]]&lt;br /&gt;
* [[Modul &amp;quot;Basic Cart&amp;quot;]]&lt;br /&gt;
===Konventionen===&lt;br /&gt;
* [[Konventionen]] Programmierhandbuch&lt;br /&gt;
===online===&lt;br /&gt;
[[Webseite online stellen]]&lt;br /&gt;
====Übersetzung====&lt;br /&gt;
* [[Drupal 7 übersetzung]]&lt;br /&gt;
&lt;br /&gt;
== [[Inhalt]] ==&lt;br /&gt;
* [[Mailnachrichten übersetzen]]&lt;br /&gt;
* [[Drupal 7 Update]] -&amp;gt; patch&lt;br /&gt;
===Migration Drupal===&lt;br /&gt;
* [[Leitfaden Drupal 6 auf Drupal 7]]&lt;br /&gt;
&lt;br /&gt;
===Module===&lt;br /&gt;
* [[Modules]]&lt;br /&gt;
* [[Multidomain]]&lt;br /&gt;
* [[Drupal 7 Patches]]&lt;br /&gt;
&lt;br /&gt;
===Diverses===&lt;br /&gt;
* [[Eclipse PDT]]&lt;br /&gt;
* [[Google Maps]]&lt;br /&gt;
* [[Social Network Facebook / Twitter]]&lt;br /&gt;
* [[Urheberrechte, Copyright]]&lt;br /&gt;
&lt;br /&gt;
== [[jQuery]] / JavaScript ==&lt;br /&gt;
== [[Git]] ==&lt;br /&gt;
=== [[Git Flow]] ===&lt;br /&gt;
&lt;br /&gt;
==[[Hosting]] - Ubuntu==&lt;br /&gt;
==[[OwnCloud]]==&lt;br /&gt;
==Design==&lt;br /&gt;
* [[Web-Icons in Vektor]]&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Newsletter==&lt;br /&gt;
* [[Newsletter Standarts für Outlook]]&lt;br /&gt;
* [[Newsletter Benutzer Einrichten]]&lt;br /&gt;
* [[Externe Scripte]]&lt;br /&gt;
* [[Formulare]]&lt;br /&gt;
&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Podcast-Feed==&lt;br /&gt;
* [[iTunes-Feed]]&lt;br /&gt;
&lt;br /&gt;
=[[Bildbearbeitung]]=&lt;br /&gt;
=[[corixFLEX]]=&lt;br /&gt;
&lt;br /&gt;
= Support =&lt;br /&gt;
===[[Support]]===&lt;br /&gt;
===[[Programme]]===&lt;br /&gt;
===[[Netzwerk]]===&lt;br /&gt;
===[[System]]===&lt;br /&gt;
&lt;br /&gt;
=Diverses=&lt;br /&gt;
* [[Website offline speichern]]&lt;br /&gt;
* [[VLC]]&lt;br /&gt;
* [[Klassennetz]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2744</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2744"/>
		<updated>2017-01-23T10:40:50Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Fixed content placed in wrong section and removed drush cex options, as it is too much info. Added Git flow information.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git, git flow and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
or use the short command:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit to git run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Or use the short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Or its short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project. This will make all need changes to modules, themes and libraries.&lt;br /&gt;
&lt;br /&gt;
== Git Flow Setup / Configuration ==&lt;br /&gt;
Navigate to the folder where you want the git repository.&lt;br /&gt;
To create a new git repository run: (you can also use a current git repository, just skip this step)&lt;br /&gt;
 git init&lt;br /&gt;
To configure git flow run: &lt;br /&gt;
 git flow init&lt;br /&gt;
For websites I prefer to use different names then the defaults for the production releases and the next releases.&lt;br /&gt;
Production releases are on the &#039;&#039;&#039;live&#039;&#039;&#039; branch and the next release branch is on the &#039;&#039;&#039;dev&#039;&#039;&#039; branch.&lt;br /&gt;
 No branches exist yet. Base branches must be created now.&lt;br /&gt;
 Branch name for production releases: [master] &#039;&#039;&#039;live&#039;&#039;&#039;&lt;br /&gt;
 Branch name for &amp;quot;next release&amp;quot; development: [develop] &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 How to name your supporting branch prefixes?&lt;br /&gt;
 Feature branches? [feature/] &lt;br /&gt;
 Bugfix branches? [bugfix/] &lt;br /&gt;
 Release branches? [release/] &lt;br /&gt;
 Hotfix branches? [hotfix/] &lt;br /&gt;
 Support branches? [support/] &lt;br /&gt;
 Version tag prefix? [] &lt;br /&gt;
 Hooks and filters directory? [/tmp/aaa-tmp/.git/hooks]&lt;br /&gt;
&lt;br /&gt;
This Git flow configuration only needs to be done once for a developer&#039;s local git repository. The is not saved to the remote repository.&lt;br /&gt;
To see the current Git Flow configuration:&lt;br /&gt;
 git flow config&lt;br /&gt;
&lt;br /&gt;
== Add Bonobo or other remote git repository to local git folder ==&lt;br /&gt;
 git remote add &lt;br /&gt;
Then you can pull the remote repository if it has commits or make a commit then you can do:&lt;br /&gt;
 git push origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&lt;br /&gt;
z.B for the dev branch&lt;br /&gt;
 git push origin dev&lt;br /&gt;
&lt;br /&gt;
== Set tracking information for git pull for a remote repository ==&lt;br /&gt;
To be able to do just:&lt;br /&gt;
 git pull&lt;br /&gt;
instead of:&lt;br /&gt;
 git pull origin &amp;lt;&#039;&#039;&#039;BranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
You can set the remote branch to pull from each time like this:&lt;br /&gt;
 git branch --set-upstream-to=&amp;lt;&#039;&#039;&#039;RemoteRepositoryName&#039;&#039;&#039;&amp;gt;/&amp;lt;&#039;&#039;&#039;RemoteBranchName&#039;&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;&#039;LocalBranchName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B to set the Remote repository with the name &#039;&#039;&#039;origin&#039;&#039;&#039; for the local branch &#039;&#039;&#039;dev&#039;&#039;&#039; to the remote branch &#039;&#039;&#039;dev&#039;&#039;&#039;&lt;br /&gt;
 git branch --set-upstream-to=origin/dev dev&lt;br /&gt;
&lt;br /&gt;
== How to start a new git flow branch for development work ==&lt;br /&gt;
Normal development work should be done on &amp;quot;feature&amp;quot; branches not on dev.&lt;br /&gt;
 git flow start feature &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. new branch for paragraphs theming&lt;br /&gt;
 git flow start feature paragraphstheming&lt;br /&gt;
&lt;br /&gt;
== How to finish your git flow feature branch ==&lt;br /&gt;
When you have finished your work and want to merge your branch into the dev branch and delete your feature branch:&lt;br /&gt;
 git flow finish &amp;lt;&#039;&#039;&#039;FeatureName&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
Or if you are currently on the git flow feature branch you can also use the short version&lt;br /&gt;
 git flow finish&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to a developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2743</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2743"/>
		<updated>2017-01-23T09:48:09Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Update structure. Added sections on exporting and importing Drupal configuration.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Managing Development Environments =&lt;br /&gt;
&lt;br /&gt;
This section describes how to use composer, drush, git and Drupal Configuration Management to move changes between development environments.&lt;br /&gt;
&lt;br /&gt;
== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
The command export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush config-export&lt;br /&gt;
The short command is:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
drush config-export options:&lt;br /&gt;
* &#039;&#039;&#039;--add&#039;&#039;&#039;                 Run `git add -p` after exporting. This lets you choose which config changes to sync for commit.                  &lt;br /&gt;
* &#039;&#039;&#039;--branch=&amp;lt;branchname&amp;gt;&#039;&#039;&#039; Make commit on provided working branch. Ignored if used without --commit or --push.                              &lt;br /&gt;
* &#039;&#039;&#039;--commit&#039;&#039;&#039;              Run `git add -A` and `git commit` after exporting.  This commits everything that was exported without prompting. &lt;br /&gt;
* &#039;&#039;&#039;--destination&#039;&#039;&#039;         An arbitrary directory that should receive the exported files. An alternative to label argument.                 &lt;br /&gt;
* &#039;&#039;&#039;--message&#039;&#039;&#039;             Commit comment for the exported configuration.  Optional; may only be used with --commit or --push.              &lt;br /&gt;
* &#039;&#039;&#039;--push&#039;&#039;&#039;                Run `git push` after committing.  Implies --commit.                                                              &lt;br /&gt;
* &#039;&#039;&#039;--remote=&amp;lt;origin&amp;gt;&#039;&#039;&#039;     The remote git branch to use to push changes.  Defaults to &amp;quot;origin&amp;quot;.                                             &lt;br /&gt;
* &#039;&#039;&#039;--skip-modules&#039;&#039;&#039;        A list of modules to ignore during export (e.g. to avoid listing dev-only modules in exported configuration).&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and choose changes to commit run:&lt;br /&gt;
 drush cex --add&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch:&lt;br /&gt;
 drush cex --commit --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To export Drupal configuration and commit all changes to current git branch and push to remote git repository:&lt;br /&gt;
 drush cex --push --message &amp;quot;This is the commit message.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
After importing Drupal configuration it is always good to &#039;&#039;&#039;r&#039;&#039;&#039;ebuild a Drupal 8 site and clear all its &#039;&#039;&#039;c&#039;&#039;&#039;aches with:&lt;br /&gt;
 drush cache-rebuild&lt;br /&gt;
Short form:&lt;br /&gt;
 drush cr&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If modules have been installed, updated or removed you will also need to run:&lt;br /&gt;
 composer install&lt;br /&gt;
This will run all the changes in the composer.json file for the project.&lt;br /&gt;
&lt;br /&gt;
== Import configuration changes into your developer environment ==&lt;br /&gt;
First get the changes from the Git repository and branch. Checkout the branch that you want to get changes from. Then:&lt;br /&gt;
 git pull&lt;br /&gt;
Next import changes into the development environment with:&lt;br /&gt;
  drush config-import&lt;br /&gt;
Short form:&lt;br /&gt;
 drush cim&lt;br /&gt;
If you would like to see a diff of the changes that will be applied:&lt;br /&gt;
 drush cim --preview=diff&lt;br /&gt;
&lt;br /&gt;
= Add custom theme from separate repository to developer environment =&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
= Copy Drupal 8 Website to developer environments =&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2742</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2742"/>
		<updated>2017-01-23T09:20:15Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Added Instructions on how to add custom themes from separate repositories to developer environments.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
To export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
* &#039;&#039;&#039;--add&#039;&#039;&#039;                 Run `git add -p` after exporting. This lets you choose which config changes to sync for commit.                  &lt;br /&gt;
* &#039;&#039;&#039;--branch=&amp;lt;branchname&amp;gt;&#039;&#039;&#039; Make commit on provided working branch. Ignored if used without --commit or --push.                              &lt;br /&gt;
* &#039;&#039;&#039;--commit&#039;&#039;&#039;              Run `git add -A` and `git commit` after exporting.  This commits everything that was exported without prompting. &lt;br /&gt;
* &#039;&#039;&#039;--destination&#039;&#039;&#039;         An arbitrary directory that should receive the exported files. An alternative to label argument.                 &lt;br /&gt;
* &#039;&#039;&#039;--message&#039;&#039;&#039;             Commit comment for the exported configuration.  Optional; may only be used with --commit or --push.              &lt;br /&gt;
* &#039;&#039;&#039;--push&#039;&#039;&#039;                Run `git push` after committing.  Implies --commit.                                                              &lt;br /&gt;
* &#039;&#039;&#039;--remote=&amp;lt;origin&amp;gt;&#039;&#039;&#039;     The remote git branch to use to push changes.  Defaults to &amp;quot;origin&amp;quot;.                                             &lt;br /&gt;
* &#039;&#039;&#039;--skip-modules&#039;&#039;&#039;        A list of modules to ignore during export (e.g. to avoid listing dev-only modules in exported configuration).&lt;br /&gt;
&lt;br /&gt;
== Add custom theme from separate repository to developer environment ==&lt;br /&gt;
&lt;br /&gt;
In the developer environment:&lt;br /&gt;
 cd themes/custom&lt;br /&gt;
&lt;br /&gt;
Clone repository.&lt;br /&gt;
 git clone &amp;lt;&#039;&#039;&#039;UrlToRepository&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
z.B. MEOS Adminimal Theme&lt;br /&gt;
 git clone http://192.168.60.12/Bonobo.Git.Server/meostheme.git&lt;br /&gt;
 &lt;br /&gt;
== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Shell&amp;diff=2715</id>
		<title>Shell</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Shell&amp;diff=2715"/>
		<updated>2017-01-12T14:41:15Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Dos 2 Unix==&lt;br /&gt;
   dos2unix dateiname&lt;br /&gt;
   dos2unix *&lt;br /&gt;
&lt;br /&gt;
==Cygwin rsync script Start==&lt;br /&gt;
   ./sync_heilsarmee.sh&lt;br /&gt;
&lt;br /&gt;
== Recursively chmod only directories or files ==&lt;br /&gt;
&lt;br /&gt;
http://rainsoftletters.wordpress.com/2008/07/22/recursively-chmodi-only-directories-or-files/&lt;br /&gt;
&lt;br /&gt;
=== Recursively chmod directories only. ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;bash&#039;&#039;&#039;&lt;br /&gt;
 find . -type d -exec chmod 755 {} \+  # This will “find” all directories, starting at “.“, and chmod them to 755.&lt;br /&gt;
 find . -type d -exec chmod g+w {} \+&lt;br /&gt;
or&lt;br /&gt;
 chmod g-x `find . -type d`&lt;br /&gt;
 chmod 644 `find . -type d`&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;fish&#039;&#039;&#039;&lt;br /&gt;
 chmod g+x (find . -type d)&lt;br /&gt;
&lt;br /&gt;
=== Recursively chmod files only ===&lt;br /&gt;
&#039;&#039;&#039;bash&#039;&#039;&#039;&lt;br /&gt;
 find . -type f -exec chmod 644 {} \+&lt;br /&gt;
or &lt;br /&gt;
 chmod 644 `find . -type f`&lt;br /&gt;
&lt;br /&gt;
This snippet does the opposite and finds only files. The difference (beside the file permissions) is the “-type f“, “f” specifies files and “d” directories.&lt;br /&gt;
If you check the comments, you’LL3D find a few additional snippets:&lt;br /&gt;
&lt;br /&gt;
 find . -type f -name &#039;*.htm*&#039; -exec chmod 644 {} \+&lt;br /&gt;
&lt;br /&gt;
This lets you “find” files (“-type f“) with a specific extension (“-name &#039;*.htm*&#039;“) and chmod them with your desired permission (“-exec chmod 644 {}“).&lt;br /&gt;
&lt;br /&gt;
 chmod -R o+rX&lt;br /&gt;
&lt;br /&gt;
This snippet will recursively chmod “other” (“o“) permissions with read/eXecutable (“+rX“), and the capital X ensures that directories and files set (user/group permissions) to executable will be properly modified, while ignoring regular (non-executable) files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;fish&#039;&#039;&#039;&lt;br /&gt;
 chmod g+x (find . -type f)&lt;br /&gt;
&lt;br /&gt;
 chmod 644 (find . -type f)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2682</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2682"/>
		<updated>2017-01-11T16:03:24Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Export main development site configuration to sync directory ==&lt;br /&gt;
The location of site configuration sync directory should be configured in the settings.php file or settings.local.php. Many are using &#039;&#039;&#039;../config/sync&#039;&#039;&#039;. This is outside the webroot for security reasons.&lt;br /&gt;
To export a Drupal 8 website configuration to the configuration sync directory:&lt;br /&gt;
 drush cex&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
* &#039;&#039;&#039;--add&#039;&#039;&#039;                 Run `git add -p` after exporting. This lets you choose which config changes to sync for commit.                  &lt;br /&gt;
* &#039;&#039;&#039;--branch=&amp;lt;branchname&amp;gt;&#039;&#039;&#039; Make commit on provided working branch. Ignored if used without --commit or --push.                              &lt;br /&gt;
* &#039;&#039;&#039;--commit&#039;&#039;&#039;              Run `git add -A` and `git commit` after exporting.  This commits everything that was exported without prompting. &lt;br /&gt;
* &#039;&#039;&#039;--destination&#039;&#039;&#039;         An arbitrary directory that should receive the exported files. An alternative to label argument.                 &lt;br /&gt;
* &#039;&#039;&#039;--message&#039;&#039;&#039;             Commit comment for the exported configuration.  Optional; may only be used with --commit or --push.              &lt;br /&gt;
* &#039;&#039;&#039;--push&#039;&#039;&#039;                Run `git push` after committing.  Implies --commit.                                                              &lt;br /&gt;
* &#039;&#039;&#039;--remote=&amp;lt;origin&amp;gt;&#039;&#039;&#039;     The remote git branch to use to push changes.  Defaults to &amp;quot;origin&amp;quot;.                                             &lt;br /&gt;
* &#039;&#039;&#039;--skip-modules&#039;&#039;&#039;        A list of modules to ignore during export (e.g. to avoid listing dev-only modules in exported configuration).&lt;br /&gt;
 &lt;br /&gt;
== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2681</id>
		<title>Hauptseite</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Hauptseite&amp;diff=2681"/>
		<updated>2017-01-11T15:46:17Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Drupal 8 Website Development */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Webdesign =&lt;br /&gt;
==Brackets==&lt;br /&gt;
[[Brackets]]&lt;br /&gt;
=== CSS ===&lt;br /&gt;
* [[CSS3]]&lt;br /&gt;
* [[CSS3 Andi]]&lt;br /&gt;
* [[Pfeile mit CSS gestalten]]&lt;br /&gt;
&lt;br /&gt;
== [[Drupal]] ==&lt;br /&gt;
* [[Login Blockiert Password]]&lt;br /&gt;
* [[Mehrsprachigkeit/Multilanguage]]&lt;br /&gt;
===Design===&lt;br /&gt;
* [[Drupal 7 Commerce]]&lt;br /&gt;
* [[Retina Display]]&lt;br /&gt;
* [[Menü Theming]]&lt;br /&gt;
* [[Theme und Theming]]&lt;br /&gt;
* [[Drupal 7 fields]]&lt;br /&gt;
* [[page.tpl.php]]&lt;br /&gt;
* [[node.tpl.php]]&lt;br /&gt;
* [[html.tpl.php]]&lt;br /&gt;
* [[Modul &amp;quot;Basic Cart&amp;quot;]]&lt;br /&gt;
===Konventionen===&lt;br /&gt;
* [[Konventionen]] Programmierhandbuch&lt;br /&gt;
===online===&lt;br /&gt;
[[Webseite online stellen]]&lt;br /&gt;
====Übersetzung====&lt;br /&gt;
* [[Drupal 7 übersetzung]]&lt;br /&gt;
=== Drupal 8 Website Development ===&lt;br /&gt;
[[Drupal 8 Website developer environments]]&lt;br /&gt;
==== Composer ====&lt;br /&gt;
[[Composer|Composer the PHP Dependency Manager]]&lt;br /&gt;
&lt;br /&gt;
== [[Inhalt]] ==&lt;br /&gt;
* [[Mailnachrichten übersetzen]]&lt;br /&gt;
* [[Drupal 7 Update]] -&amp;gt; patch&lt;br /&gt;
===Migration Drupal===&lt;br /&gt;
* [[Leitfaden Drupal 6 auf Drupal 7]]&lt;br /&gt;
&lt;br /&gt;
===Module===&lt;br /&gt;
* [[Modules]]&lt;br /&gt;
* [[Multidomain]]&lt;br /&gt;
* [[Drupal 7 Patches]]&lt;br /&gt;
&lt;br /&gt;
===Diverses===&lt;br /&gt;
* [[Eclipse PDT]]&lt;br /&gt;
* [[Google Maps]]&lt;br /&gt;
* [[Social Network Facebook / Twitter]]&lt;br /&gt;
* [[Urheberrechte, Copyright]]&lt;br /&gt;
&lt;br /&gt;
== [[jQuery]] / JavaScript ==&lt;br /&gt;
== [[Git]] ==&lt;br /&gt;
=== [[Git Flow]] ===&lt;br /&gt;
&lt;br /&gt;
==[[Hosting]] - Ubuntu==&lt;br /&gt;
==[[OwnCloud]]==&lt;br /&gt;
==Design==&lt;br /&gt;
* [[Web-Icons in Vektor]]&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Newsletter==&lt;br /&gt;
* [[Newsletter Standarts für Outlook]]&lt;br /&gt;
* [[Newsletter Benutzer Einrichten]]&lt;br /&gt;
* [[Externe Scripte]]&lt;br /&gt;
* [[Formulare]]&lt;br /&gt;
&lt;br /&gt;
* [[Ideen]]&lt;br /&gt;
&lt;br /&gt;
==Podcast-Feed==&lt;br /&gt;
* [[iTunes-Feed]]&lt;br /&gt;
&lt;br /&gt;
=[[Bildbearbeitung]]=&lt;br /&gt;
=[[corixFLEX]]=&lt;br /&gt;
&lt;br /&gt;
= Support =&lt;br /&gt;
===[[Support]]===&lt;br /&gt;
===[[Programme]]===&lt;br /&gt;
===[[Netzwerk]]===&lt;br /&gt;
===[[System]]===&lt;br /&gt;
&lt;br /&gt;
=Diverses=&lt;br /&gt;
* [[Website offline speichern]]&lt;br /&gt;
* [[VLC]]&lt;br /&gt;
* [[Klassennetz]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Copy_Drupal_8_Website_to_developer_environments&amp;diff=2680</id>
		<title>Copy Drupal 8 Website to developer environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Copy_Drupal_8_Website_to_developer_environments&amp;diff=2680"/>
		<updated>2017-01-11T15:45:08Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Frederick verschob die Seite Copy Drupal 8 Website to developer environments nach Drupal 8 Website developer environments: Name is too specific&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#WEITERLEITUNG [[Drupal 8 Website developer environments]]&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2679</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2679"/>
		<updated>2017-01-11T15:45:08Z</updated>

		<summary type="html">&lt;p&gt;Frederick: Frederick verschob die Seite Copy Drupal 8 Website to developer environments nach Drupal 8 Website developer environments: Name is too specific&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2678</id>
		<title>Composer</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2678"/>
		<updated>2017-01-11T14:01:22Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Creating your very own Composer Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Composer - The PHP dependency manager =&lt;br /&gt;
&lt;br /&gt;
The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies as it is not a dependency manager.&lt;br /&gt;
&lt;br /&gt;
== Install the Drupal 8 Lightning distribution with Composer ==&lt;br /&gt;
&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; --no-interaction&lt;br /&gt;
Where &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; is the name of the project folder. Inside the project folder will be the webroot folder called &#039;&#039;&#039;docroot&#039;&#039;&#039;. This is the folder to server with the web server.&lt;br /&gt;
&lt;br /&gt;
ie. To install a project called &#039;&#039;&#039;meos&#039;&#039;&#039; on the &#039;&#039;&#039;dev01&#039;&#039;&#039; server, first go to &amp;lt;code&amp;gt;/var/www&amp;lt;/code&amp;gt; then run:&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;meos&#039;&#039;&#039; --no-interaction&lt;br /&gt;
&lt;br /&gt;
For more information about the Lightning Distribution see its [https://www.drupal.org/project/lightning Drupal.org project page] or [https://github.com/acquia/lightning-project Github page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Composer Configuration ==&lt;br /&gt;
List configuration from the composer.json file in the current folder.&lt;br /&gt;
 composer config --list&lt;br /&gt;
&lt;br /&gt;
=== Modifying Repositories ===&lt;br /&gt;
The &#039;&#039;&#039;composer config&#039;&#039;&#039; command also supports making changes to the repositories section by using it the following way:&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo vcs https://github.com/foo/bar&lt;br /&gt;
&lt;br /&gt;
If your repository requires more configuration options, you can instead pass its JSON representation :&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo &#039;{&amp;quot;type&amp;quot;: &amp;quot;vcs&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;http://svn.example.org/my-project/&amp;quot;, &amp;quot;trunk-path&amp;quot;: &amp;quot;master&amp;quot;}&#039;&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/03-cli.md#config &#039;&#039;&#039;composer config&#039;&#039;&#039; commands].&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/04-schema.md#repositories &#039;&#039;&#039;composer config repositories&#039;&#039;&#039; commands].&lt;br /&gt;
== Creating your very own Composer Package ==&lt;br /&gt;
([http://knpuniversity.com/screencast/question-answer-day/create-composer-package Info from KNP University])&lt;br /&gt;
# Put your Composer package project in a git repository (example repository https://github.com/weaverryan/derp-dangerzone used in examples)&lt;br /&gt;
# Give your Library a composer.json File&lt;br /&gt;
Add a &#039;&#039;&#039;composer.json&#039;&#039;&#039; file in the library itself. This is really easy. Created a new &#039;&#039;&#039;composer.json&#039;&#039;&#039; file at the root of the git project. Composer will look at your branches and tags to get the version and source keys.&lt;br /&gt;
&lt;br /&gt;
In other words, create a composer.json file in your git repository root that looks similar to this:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;&#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
    &amp;quot;autoload&amp;quot;: {&lt;br /&gt;
        &amp;quot;psr-0&amp;quot; : {&lt;br /&gt;
            &amp;quot;&#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039;&amp;quot; : &amp;quot;src&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039; is the name of the git repository and &lt;br /&gt;
where &#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039; is the [https://getcomposer.org/doc/04-schema.md#psr-0 PSR-0 namespace]. This namespace is directly related to the folders in the &#039;&#039;&#039;src&#039;&#039;&#039; folder containing your project.&lt;br /&gt;
&lt;br /&gt;
To add this repository to your composer project you can run:&lt;br /&gt;
 &lt;br /&gt;
 composer config repositories.&#039;&#039;&#039;zeberli&#039;&#039;&#039; vcs https://github.com/weaverryan/derp-dangerzone&lt;br /&gt;
Where &#039;&#039;&#039;zeberli&#039;&#039;&#039; in a unique key identifying this repository in the composer.json file and the URL is the address of the git repository containing your project.&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2677</id>
		<title>Composer</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Composer&amp;diff=2677"/>
		<updated>2017-01-11T13:59:57Z</updated>

		<summary type="html">&lt;p&gt;Frederick: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Composer - The PHP dependency manager =&lt;br /&gt;
&lt;br /&gt;
The Drupal community is changing to use Composer to install and update Drupal. Drush has no idea about dependencies as it is not a dependency manager.&lt;br /&gt;
&lt;br /&gt;
== Install the Drupal 8 Lightning distribution with Composer ==&lt;br /&gt;
&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; --no-interaction&lt;br /&gt;
Where &#039;&#039;&#039;MYPROJECT&#039;&#039;&#039; is the name of the project folder. Inside the project folder will be the webroot folder called &#039;&#039;&#039;docroot&#039;&#039;&#039;. This is the folder to server with the web server.&lt;br /&gt;
&lt;br /&gt;
ie. To install a project called &#039;&#039;&#039;meos&#039;&#039;&#039; on the &#039;&#039;&#039;dev01&#039;&#039;&#039; server, first go to &amp;lt;code&amp;gt;/var/www&amp;lt;/code&amp;gt; then run:&lt;br /&gt;
 composer create-project acquia/lightning-project:^8.1.0 &#039;&#039;&#039;meos&#039;&#039;&#039; --no-interaction&lt;br /&gt;
&lt;br /&gt;
For more information about the Lightning Distribution see its [https://www.drupal.org/project/lightning Drupal.org project page] or [https://github.com/acquia/lightning-project Github page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Composer Configuration ==&lt;br /&gt;
List configuration from the composer.json file in the current folder.&lt;br /&gt;
 composer config --list&lt;br /&gt;
&lt;br /&gt;
=== Modifying Repositories ===&lt;br /&gt;
The &#039;&#039;&#039;composer config&#039;&#039;&#039; command also supports making changes to the repositories section by using it the following way:&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo vcs https://github.com/foo/bar&lt;br /&gt;
&lt;br /&gt;
If your repository requires more configuration options, you can instead pass its JSON representation :&lt;br /&gt;
&lt;br /&gt;
 composer config repositories.foo &#039;{&amp;quot;type&amp;quot;: &amp;quot;vcs&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;http://svn.example.org/my-project/&amp;quot;, &amp;quot;trunk-path&amp;quot;: &amp;quot;master&amp;quot;}&#039;&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/03-cli.md#config &#039;&#039;&#039;composer config&#039;&#039;&#039; commands].&lt;br /&gt;
&lt;br /&gt;
More info on [https://getcomposer.org/doc/04-schema.md#repositories &#039;&#039;&#039;composer config repositories&#039;&#039;&#039; commands].&lt;br /&gt;
== Creating your very own Composer Package ==&lt;br /&gt;
([http://knpuniversity.com/screencast/question-answer-day/create-composer-package Info from KNP University])&lt;br /&gt;
# Put your Composer package project in a git repository (example repository https://github.com/weaverryan/derp-dangerzone used in examples)&lt;br /&gt;
# Give your Library a composer.json File&lt;br /&gt;
Add a &#039;&#039;&#039;composer.json&#039;&#039;&#039; file in the library itself. This is really easy. Created a new &#039;&#039;&#039;composer.json&#039;&#039;&#039; file at the root of the git project. Composer will look at your branches and tags to get the version and source keys.&lt;br /&gt;
&lt;br /&gt;
In other words, create a composer.json file in your git repository root that looks similar to this:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;&#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039;&amp;quot;,&lt;br /&gt;
    &amp;quot;autoload&amp;quot;: {&lt;br /&gt;
        &amp;quot;psr-0&amp;quot; : {&lt;br /&gt;
            &amp;quot;&#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039;&amp;quot; : &amp;quot;src&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;weaverryan/derp-dangerzone&#039;&#039;&#039; is the name of the git repository and &lt;br /&gt;
where &#039;&#039;&#039;Weaverryan\\DangerZone&#039;&#039;&#039; is the [https://getcomposer.org/doc/04-schema.md#psr-0 PSR-0 namespace]. This namespace is directly related to the folders in the &#039;&#039;&#039;src&#039;&#039;&#039; folder containing your project.&lt;br /&gt;
&lt;br /&gt;
To add this repository to your composer project you can run:&lt;br /&gt;
 &lt;br /&gt;
 composer config repositories.&#039;&#039;&#039;zeberli&#039;&#039;&#039; vcs https://github.com/weaverryan/derp-dangerzone&lt;br /&gt;
Where &#039;&#039;&#039;zeberli&#039;&#039;&#039; in a unique key identifying this repository in the composer.json file.&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2666</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2666"/>
		<updated>2017-01-10T09:23:01Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: Where &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; is the Drush site alias you want to update.(&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2665</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2665"/>
		<updated>2017-01-10T09:21:23Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (&#039;&#039;&#039;NOTE:&#039;&#039;&#039;Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2664</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2664"/>
		<updated>2017-01-10T09:20:28Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush &#039;&#039;&#039;@meos.fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2663</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2663"/>
		<updated>2017-01-10T09:19:35Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/&#039;&#039;&#039;meos-fh&#039;&#039;&#039;&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/&#039;&#039;&#039;meos&#039;&#039;&#039;/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.&#039;&#039;&#039;fh&#039;&#039;&#039; pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.&#039;&#039;&#039;fh&#039;&#039;&#039; cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2649</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2649"/>
		<updated>2016-12-20T15:28:07Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod u+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2648</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2648"/>
		<updated>2016-12-20T15:24:27Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions of settings.local.php&lt;br /&gt;
 chmod -R g+w settings.local.php&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2647</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2647"/>
		<updated>2016-12-20T15:22:03Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w docroot/sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2646</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2646"/>
		<updated>2016-12-20T15:20:50Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w sites/default/&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2645</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2645"/>
		<updated>2016-12-20T15:20:09Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w sites/default/&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2644</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2644"/>
		<updated>2016-12-20T15:06:50Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w sites/default/&lt;br /&gt;
* Pull the database from the main development site: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2643</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2643"/>
		<updated>2016-12-20T15:06:32Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* Change to sites/default directory:&lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* Copy as settings.local.php from another development site:&lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* Edit the file:&lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings to the new database for the website.&lt;br /&gt;
* Change back to the project folder:&lt;br /&gt;
 cd ../../../&lt;br /&gt;
* Run Composer to install dependencies:&lt;br /&gt;
 composer install&lt;br /&gt;
* Fix permissions on sites/default so Drupal can write to it:&lt;br /&gt;
 chmod -R g+w sites/default/&lt;br /&gt;
* Pull the database from the main developmentsite: (Drush shell alias needs to be created  in the aliases file in /etc/drush/ for the pull-live.db command to work.)&lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* Import the configuration from the config/sync directory with Drush:&lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2642</id>
		<title>Drupal 8 Website Developer Environments</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Drupal_8_Website_Developer_Environments&amp;diff=2642"/>
		<updated>2016-12-20T15:01:22Z</updated>

		<summary type="html">&lt;p&gt;Frederick: /* Copy Drupal 8 Website to developer environments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Copy Drupal 8 Website to developer environments ==&lt;br /&gt;
&lt;br /&gt;
* cd in to the new developer environment:&lt;br /&gt;
 cd /var/www/meos-fh&lt;br /&gt;
* Initialize the folder for git:&lt;br /&gt;
 git init&lt;br /&gt;
* Add the Git Repository as a remote called &#039;&#039;&#039;origin&#039;&#039;&#039;:&lt;br /&gt;
 git remote add origin &amp;lt;&#039;&#039;&#039;repository_URL&#039;&#039;&#039;&amp;gt;&lt;br /&gt;
* Pull the repository to the directory:&lt;br /&gt;
 git pull&lt;br /&gt;
* Check out the development branch &#039;&#039;&#039;dev&#039;&#039;&#039;:&lt;br /&gt;
 git checkout dev&lt;br /&gt;
* &lt;br /&gt;
 cd docroot/sites/default/&lt;br /&gt;
* &lt;br /&gt;
 cp  /var/www/meos/docroot/sites/default/settings.local.php ./&lt;br /&gt;
* &lt;br /&gt;
 nano settings.local.php&lt;br /&gt;
Change database settings.&lt;br /&gt;
* &lt;br /&gt;
 cd ../../../&lt;br /&gt;
* &lt;br /&gt;
 composer install&lt;br /&gt;
* &lt;br /&gt;
 chmod -R g+w sites/default/&lt;br /&gt;
* &lt;br /&gt;
 drush @meos.fh pull-live-db&lt;br /&gt;
* &lt;br /&gt;
 drush @meos.fh cim  #(cim is short for config-import)&lt;/div&gt;</summary>
		<author><name>Frederick</name></author>
	</entry>
</feed>