Drupal 8 Website Developer Environments: Unterschied zwischen den Versionen
Erscheinungsbild
| Zeile 1: | Zeile 1: | ||
== Copy Drupal 8 Website to developer environments == | == Copy Drupal 8 Website to developer environments == | ||
cd in to the new developer environment: | * cd in to the new developer environment: | ||
cd /var/www/meos-fh | cd /var/www/meos-fh | ||
Initialize the folder for git: | * Initialize the folder for git: | ||
git init | git init | ||
Add the Git Repository as a remote called '''origin''': | * Add the Git Repository as a remote called '''origin''': | ||
git remote add origin <'''repository_URL'''> | git remote add origin <'''repository_URL'''> | ||
Pull the repository to the directory: | * Pull the repository to the directory: | ||
git pull | git pull | ||
Check out the development branch '''dev''': | * Check out the development branch '''dev''': | ||
git checkout dev | git checkout dev | ||
* | |||
cd docroot/sites/default/ | cd docroot/sites/default/ | ||
* | |||
cp /var/www/meos/docroot/sites/default/settings.local.php ./ | cp /var/www/meos/docroot/sites/default/settings.local.php ./ | ||
* | |||
nano settings.local.php | nano settings.local.php | ||
Change database settings. | Change database settings. | ||
* | |||
cd ../../../ | cd ../../../ | ||
* | |||
composer install | composer install | ||
* | |||
chmod -R g+w sites/default/ | chmod -R g+w sites/default/ | ||
* | |||
drush @meos.fh pull-live-db | drush @meos.fh pull-live-db | ||
* | |||
drush @meos.fh cim #(cim is short for config-import) | drush @meos.fh cim #(cim is short for config-import) | ||
Version vom 20. Dezember 2016, 15:01 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)