Zum Inhalt springen

Drupal 8 Website Developer Environments

Aus Computech CMS Wiki

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)