Zum Inhalt springen

Drupal 8 Website Developer Environments: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Frederick (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „== Copy Drupal 8 Website to developer environments == cd in to the new developer environment: cd /var/www/meos-fh Initialize the folder for git: git init Ad…“
 
Frederick (Diskussion | Beiträge)
Zeile 11: Zeile 11:
Check out the development branch '''dev''':
Check out the development branch '''dev''':
  git checkout dev
  git checkout dev
cd docroot/sites/default/
cp  /var/www/meos/docroot/sites/default/settings.local.php ./
nano settings.local.php
Change database settings.
cd ../../../
composer install
chmod -R g+w sites/default/
drush @meos.fh pull-live-db
drush @meos.fh cim  #(cim is short for config-import)

Version vom 20. Dezember 2016, 14:54 Uhr

Copy Drupal 8 Website to developer environments

cd in to the new developer environment:

cd /var/www/meos-fh

Initialize the folder for git:

git init

Add the Git Repository as a remote called origin:

git remote add origin <repository_URL>

Pull the repository to the directory:

git pull

Check out the development branch dev:

git checkout dev
cd docroot/sites/default/
cp  /var/www/meos/docroot/sites/default/settings.local.php ./
nano settings.local.php

Change database settings.

cd ../../../
composer install
chmod -R g+w sites/default/
drush @meos.fh pull-live-db
drush @meos.fh cim  #(cim is short for config-import)