Skip to content

Drupal 8 with Docker, Git & Composer starter kit - A quick local dev env for test and development using docker and composer

License

Notifications You must be signed in to change notification settings

davepoon/Drupal-8-Docker-Git-Composer-Starter-Kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bring up containers

docker-compose up -d --build

Installing Drupal

docker exec -it drupal_1 bash /app # composer create-project drupal-composer/drupal-project:8.x-dev /app --stability dev --no-interaction /app # mkdir -p /app/config/sync /app # chown -R www-data:www-data /app/web /app # drush config-export /app # exit`

Shell login

docker exec -it drupal_1 bash

Updating Drupal 8 Core

git checkout -b update-drupal

docker exec -it drupal bash

/app #composer update drupal/core --with-dependencies

/app #drush updb

/app # exit

git add .

git commit -m "Updated Drupal Core."

git push

Installing a “Contrib” Module or Theme

git checkout -b install-pathauto

docker exec -it drupal_1 bash

/app #composer require drupal/pathauto

/app #drush en pathauto -y

/app # exit

git add .

git commit -m "Installed Pathauto."

git push

Updating Drupal “Contrib” Modules & Themes

git checkout -b update-pathauto

docker exec -it drupal_1 bash

/app # composer update drupal/pathauto --with-dependencies

/app # drush updb # updates the DB with any schema changes

/app # exit

git add .

git commit -m "Updated Pathauto."

git push

About

Drupal 8 with Docker, Git & Composer starter kit - A quick local dev env for test and development using docker and composer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published