Local development tools for Drupal

Submitted by admin on Thu, 07/15/2021 - 15:52

When developing a website it will make the process much easier if you can develop the whole stack on your local PC. Lots of tools exists to help you with this, some examples are Docker, Vagrant and Ddev.

DDEV[1] is a docker configuration that handles all you need to develop a Drupal site.  The link should provide you with more background information.

The following receipt would get you started with a Drupal 9 development site.

mkdir drupal9-site
cd drupal9-site
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
ddev composer create drupal/recommended-project
ddev composer require drush/drush
ddev drush site:install --account-name=admin --account-pass=1234 -y
ddev drush uli
ddev launch

The final launch command will start a local web browser with the link to the site.

 

[1] : https://www.drup...uide.html

Tags

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.