Skip to content

Instantly share code, notes, and snippets.

@rfay
Created January 21, 2020 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfay/fbed09e09382e8cad4a2a79acd8d3463 to your computer and use it in GitHub Desktop.
Save rfay/fbed09e09382e8cad4a2a79acd8d3463 to your computer and use it in GitHub Desktop.
rfay@rfay-mbp-2017:~/workspace$ mkdir my-drupal8-site
rfay@rfay-mbp-2017:~/workspace$ cd my-drupal8-site/
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev config --project-type php
Creating a new ddev project config in the current directory (/Users/rfay/workspace/my-drupal8-site)
Once completed, your configuration will be written to /Users/rfay/workspace/my-drupal8-site/.ddev/config.yaml
Found a php codebase at /Users/rfay/workspace/my-drupal8-site
Project type has no settings paths configured, so not creating settings file.
Configuration complete. You may now run 'ddev start'.
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev composer create drupal-composer/drupal-project:8.x-dev --prefer-dist
Creating volume "my-drupal8-site-mariadb" with default driver
Building db
Building web
Creating ddev-my-drupal8-site-db ... done
Creating ddev-my-drupal8-site-web ... done
Creating ddev-my-drupal8-site-dba ... done
ddev-router is up-to-date
Warning: ALL EXISTING CONTENT of the project root (/Users/rfay/workspace/my-drupal8-site) will be deleted
Would you like to continue? [Y/n] (yes):
Removing any existing files in project root
Executing composer command: composer create-project drupal-composer/drupal-project:8.x-dev --prefer-dist /var/www/html/.tmp_ddev_composer_create_DYLaYb
Installing drupal-composer/drupal-project (8.x-dev 04a3fe08d35bfdbdcb9718556fbe8181cd111ff0)
- Installing drupal-composer/drupal-project (8.x-dev 04a3fe0): Downloading (100%) Created project in /var/www/html/.tmp_ddev_composer_create_DYLaYb
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 149 installs, 0 updates, 0 removals
- Installing cweagans/composer-patches (1.6.7): Loading from cache
- Installing composer/installers (v1.7.0): Loading from cache
- Installing drupal/core-composer-scaffold (8.8.1): Loading from cache
- Installing zaporylie/composer-drupal-optimizations (1.1.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.13.1): Loading from cache
- Installing symfony/finder (v3.4.37): Downloading (100%)
- Installing symfony/yaml (v3.4.37): Downloading (100%)
- Installing drupal/console-extend-plugin (0.9.3): Loading from cache
- Installing paragonie/random_compat (v9.99.99): Loading from cache
- Installing symfony/polyfill-php70 (v1.13.1): Loading from cache
- Installing symfony/polyfill-mbstring (v1.13.1): Loading from cache
- Installing symfony/http-foundation (v3.4.37): Downloading (100%)
- Installing symfony/dom-crawler (v3.4.37): Downloading (100%)
- Installing symfony/css-selector (v3.4.37): Downloading (100%)
- Installing jakub-onderka/php-console-color (v0.2): Loading from cache
- Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
- Installing nikic/php-parser (v4.3.0): Loading from cache
- Installing symfony/polyfill-php72 (v1.13.1): Loading from cache
- Installing symfony/var-dumper (v4.4.3): Downloading (100%)
- Installing psr/container (1.0.0): Loading from cache
- Installing psr/log (1.1.2): Loading from cache
- Installing symfony/debug (v3.4.37): Downloading (100%)
- Installing symfony/console (v3.4.37): Downloading (100%)
- Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache
- Installing psy/psysh (v0.9.12): Loading from cache
- Installing ralouphie/getallheaders (3.0.3): Loading from cache
- Installing psr/http-message (1.0.1): Loading from cache
- Installing guzzlehttp/psr7 (1.6.1): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.5.2): Loading from cache
- Installing webmozart/assert (1.6.0): Loading from cache
- Installing webmozart/path-util (2.3.0): Loading from cache
- Installing webflo/drupal-finder (1.2.0): Loading from cache
- Installing twig/twig (v1.42.4): Loading from cache
- Installing symfony/translation (v3.4.37): Downloading (100%)
- Installing symfony/process (v3.4.37): Downloading (100%)
- Installing symfony/filesystem (v3.4.37): Downloading (100%)
- Installing symfony/event-dispatcher (v3.4.37): Downloading (100%)
- Installing symfony/dependency-injection (v3.4.37): Downloading (100%)
- Installing symfony/config (v3.4.37): Downloading (100%)
- Installing stecman/symfony-console-completion (0.10.1): Downloading (100%)
- Installing drupal/console-en (1.9.4): Loading from cache
- Installing dflydev/placeholder-resolver (v1.0.2): Downloading (100%)
- Installing dflydev/dot-access-data (v1.1.0): Loading from cache
- Installing dflydev/dot-access-configuration (v1.0.3): Downloading (100%)
- Installing drupal/console-core (1.9.4): Loading from cache
- Installing doctrine/collections (1.6.4): Loading from cache
- Installing doctrine/lexer (1.2.0): Loading from cache
- Installing doctrine/annotations (v1.8.0): Loading from cache
- Installing alchemy/zippy (0.4.9): Downloading (100%)
- Installing drupal/console (1.9.4): Loading from cache
- Installing pear/pear_exception (v1.0.1): Loading from cache
- Installing pear/console_getopt (v1.4.3): Loading from cache
- Installing pear/pear-core-minimal (v1.10.10): Loading from cache
- Installing pear/archive_tar (1.4.9): Loading from cache
- Installing symfony/polyfill-intl-idn (v1.13.1): Loading from cache
- Installing symfony/polyfill-util (v1.13.1): Loading from cache
- Installing symfony/polyfill-php56 (v1.13.1): Loading from cache
- Installing symfony/http-kernel (v3.4.37): Downloading (100%)
- Installing asm89/stack-cors (1.3.0): Loading from cache
- Installing composer/semver (1.5.1): Loading from cache
- Installing zendframework/zend-diactoros (1.8.7): Loading from cache
- Installing symfony/psr-http-message-bridge (v1.2.0): Downloading (100%)
- Installing masterminds/html5 (2.7.0): Downloading (100%)
- Installing egulias/email-validator (2.1.15): Downloading (100%)
- Installing stack/builder (v1.0.5): Loading from cache
- Installing zendframework/zend-stdlib (3.2.1): Loading from cache
- Installing zendframework/zend-escaper (2.6.1): Loading from cache
- Installing zendframework/zend-feed (2.12.0): Loading from cache
- Installing easyrdf/easyrdf (0.9.1): Loading from cache
- Installing symfony/routing (v3.4.37): Downloading (100%)
- Installing symfony-cmf/routing (1.4.1): Loading from cache
- Installing doctrine/reflection (v1.1.0): Downloading (100%)
- Installing doctrine/event-manager (1.1.0): Loading from cache
- Installing doctrine/cache (1.10.0): Loading from cache
- Installing doctrine/persistence (1.3.6): Downloading (100%)
- Installing doctrine/inflector (1.3.1): Loading from cache
- Installing doctrine/common (2.12.0): Downloading (100%)
- Installing typo3/phar-stream-wrapper (v3.1.3): Loading from cache
- Installing symfony/polyfill-iconv (v1.13.1): Loading from cache
- Installing symfony/validator (v3.4.37): Downloading (100%)
- Installing symfony/serializer (v3.4.37): Downloading (100%)
- Installing symfony/class-loader (v3.4.37): Downloading (100%)
- Installing drupal/core (8.8.1): Loading from cache
- Installing container-interop/container-interop (1.2.0): Loading from cache
- Installing league/container (2.4.1): Loading from cache
- Installing grasmash/yaml-expander (1.4.0): Loading from cache
- Installing grasmash/expander (1.0.0): Loading from cache
- Installing consolidation/config (1.2.1): Loading from cache
- Installing consolidation/site-alias (3.0.0): Loading from cache
- Installing consolidation/site-process (2.1.0): Loading from cache
- Installing consolidation/log (1.1.1): Loading from cache
- Installing consolidation/self-update (1.1.5): Loading from cache
- Installing consolidation/output-formatters (3.5.0): Loading from cache
- Installing consolidation/annotated-command (2.12.0): Loading from cache
- Installing consolidation/robo (1.4.11): Loading from cache
- Installing phpdocumentor/reflection-common (2.0.0): Loading from cache
- Installing phpdocumentor/type-resolver (1.0.1): Loading from cache
- Installing phpdocumentor/reflection-docblock (4.3.4): Loading from cache
- Installing consolidation/filter-via-dot-access-data (1.0.0): Loading from cache
- Installing chi-teck/drupal-code-generator (1.31.0): Loading from cache
- Installing drush/drush (10.1.1): Loading from cache
- Installing phpoption/phpoption (1.7.2): Loading from cache
- Installing vlucas/phpdotenv (v4.1.0): Downloading (100%)
- Installing symfony/phpunit-bridge (v3.4.37): Downloading (100%)
- Installing symfony/lock (v3.4.37): Downloading (100%)
- Installing symfony/browser-kit (v3.4.37): Downloading (100%)
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/resource-operations (2.0.1): Loading from cache
- Installing sebastian/recursion-context (3.0.0): Loading from cache
- Installing sebastian/object-reflector (1.1.1): Loading from cache
- Installing sebastian/object-enumerator (3.0.3): Loading from cache
- Installing sebastian/global-state (2.0.0): Loading from cache
- Installing sebastian/exporter (3.1.2): Loading from cache
- Installing sebastian/environment (4.2.3): Loading from cache
- Installing sebastian/diff (3.0.2): Loading from cache
- Installing sebastian/comparator (3.0.2): Loading from cache
- Installing phpunit/php-timer (2.1.2): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing phpunit/php-file-iterator (2.0.2): Loading from cache
- Installing theseer/tokenizer (1.1.3): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
- Installing phpunit/php-token-stream (3.1.1): Loading from cache
- Installing phpunit/php-code-coverage (6.1.4): Loading from cache
- Installing doctrine/instantiator (1.3.0): Loading from cache
- Installing phpspec/prophecy (v1.10.2): Downloading (100%)
- Installing phar-io/version (2.0.1): Loading from cache
- Installing phar-io/manifest (1.0.3): Loading from cache
- Installing myclabs/deep-copy (1.9.5): Downloading (100%)
- Installing phpunit/phpunit (7.5.20): Downloading (100%)
- Installing mikey179/vfsstream (v1.6.8): Loading from cache
- Installing justinrainbow/json-schema (5.2.9): Loading from cache
- Installing jcalderonzumba/gastonjs (v1.2.0): Loading from cache
- Installing behat/mink (dev-master a534fe7): Downloading (100%)
- Installing jcalderonzumba/mink-phantomjs-driver (v0.3.3): Loading from cache
- Installing squizlabs/php_codesniffer (3.5.3): Loading from cache
- Installing drupal/coder (8.3.7): Cloning c11c295765 from cache
- Installing composer/xdebug-handler (1.4.0): Loading from cache
- Installing composer/spdx-licenses (1.5.2): Loading from cache
- Installing seld/phar-utils (1.0.2): Loading from cache
- Installing seld/jsonlint (1.7.2): Loading from cache
- Installing composer/ca-bundle (1.2.6): Loading from cache
- Installing composer/composer (1.9.2): Downloading (100%)
- Installing instaclick/php-webdriver (1.4.6): Loading from cache
- Installing behat/mink-selenium2-driver (1.3.x-dev 0a09c43): Downloading (100%) - Installing fabpot/goutte (v3.2.3): Loading from cache
- Installing behat/mink-browserkit-driver (1.3.3): Loading from cache
- Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
- Installing drupal/core-dev (8.8.1)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter with Guzzle 3)
drupal/console suggests installing symfony/thanks (Thank your favorite PHP projects on GitHub using the CLI)
pear/archive_tar suggests installing ext-xz (Lzma2 compression support.)
symfony/psr-http-message-bridge suggests installing nyholm/psr7 (For a super lightweight PSR-7/17 implementation)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries when using the Writer subcomponent)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
symfony/validator suggests installing psr/cache-implementation (For using the metadata cache.)
symfony/validator suggests installing symfony/intl
symfony/validator suggests installing symfony/property-access (For accessing properties within comparison constraints)
symfony/validator suggests installing symfony/expression-language (For using the Expression validator)
symfony/serializer suggests installing psr/cache-implementation (For using the metadata cache.)
symfony/serializer suggests installing symfony/property-info (To deserialize relations.)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
phpunit/phpunit suggests installing ext-xdebug (*)
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
behat/mink suggests installing dmore/chrome-mink-driver (fast and JS-enabled driver for any app (requires chromium or google chrome))
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Package zendframework/zend-escaper is abandoned, you should avoid using it. Use laminas/laminas-escaper instead.
Package zendframework/zend-feed is abandoned, you should avoid using it. Use laminas/laminas-feed instead.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Writing lock file
Generating autoload files
Scaffolding files for drupal/core:
- Copy [project-root]/.editorconfig from assets/scaffold/files/editorconfig
- Copy [project-root]/.gitattributes from assets/scaffold/files/gitattributes
- Copy [web-root]/.csslintrc from assets/scaffold/files/csslintrc
- Copy [web-root]/.eslintignore from assets/scaffold/files/eslintignore
- Copy [web-root]/.eslintrc.json from assets/scaffold/files/eslintrc.json
- Copy [web-root]/.ht.router.php from assets/scaffold/files/ht.router.php
- Copy [web-root]/.htaccess from assets/scaffold/files/htaccess
- Copy [web-root]/example.gitignore from assets/scaffold/files/example.gitignore
- Copy [web-root]/index.php from assets/scaffold/files/index.php
- Copy [web-root]/INSTALL.txt from assets/scaffold/files/drupal.INSTALL.txt
- Copy [web-root]/README.txt from assets/scaffold/files/drupal.README.txt
- Copy [web-root]/robots.txt from assets/scaffold/files/robots.txt
- Copy [web-root]/update.php from assets/scaffold/files/update.php
- Copy [web-root]/web.config from assets/scaffold/files/web.config
- Copy [web-root]/sites/README.txt from assets/scaffold/files/sites.README.txt
- Copy [web-root]/sites/development.services.yml from assets/scaffold/files/development.services.yml
- Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php
- Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php
- Copy [web-root]/sites/default/default.services.yml from assets/scaffold/files/default.services.yml
- Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php
- Copy [web-root]/modules/README.txt from assets/scaffold/files/modules.README.txt
- Copy [web-root]/profiles/README.txt from assets/scaffold/files/profiles.README.txt
- Copy [web-root]/themes/README.txt from assets/scaffold/files/themes.README.txt
> DrupalProject\composer\ScriptHandler::createRequiredFiles
Created a sites/default/settings.php file with chmod 0666
Created a sites/default/files directory with chmod 0777
Moving installation to project root
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev config --project-type drupal8
You are reconfiguring the project at /Users/rfay/workspace/my-drupal8-site.
The existing configuration will be updated and replaced.
Found a drupal8 codebase at /Users/rfay/workspace/my-drupal8-site/web
Ensuring write permissions for my-drupal8-site
Existing settings.php file does not include settings.ddev.php, modifying to include ddev settings
Configuration complete. You may now run 'ddev start'.
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ ddev restart
Restarting project my-drupal8-site...
Stopping ddev-my-drupal8-site-web ... done
Stopping ddev-my-drupal8-site-dba ... done
Stopping ddev-my-drupal8-site-db ... done
Removing container: ddev-my-drupal8-site-web
Removing container: ddev-my-drupal8-site-dba
Removing container: ddev-my-drupal8-site-db
Building db
Building web
Creating ddev-my-drupal8-site-db ... done
Creating ddev-my-drupal8-site-web ... done
Creating ddev-my-drupal8-site-dba ... done
ddev-router is up-to-date
Ensuring write permissions for my-drupal8-site
Ensuring write permissions for my-drupal8-site
Existing settings.php file includes settings.ddev.php
Restarted my-drupal8-site
Your project can be reached at https://my-drupal8-site.ddev.site https://127.0.0.1:33074
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$ head -20 .ddev/config.yaml
APIVersion: v1.12.1
name: my-drupal8-site
type: drupal8
docroot: web
php_version: "7.2"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
nfs_mount_enabled: false
provider: default
use_dns_when_possible: true
timezone: ""
# This config.yaml was created with ddev version v1.12.1
# webimage: drud/ddev-webserver:v1.12.1
# dbimage: drud/ddev-dbserver-mariadb-10.2:v1.12.0
rfay@rfay-mbp-2017:~/workspace/my-drupal8-site$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment