xenomedia / xeno-base
在Pantheon上使用Composer安装drops-8。
Requires
- composer/installers: ^1.0.20
- cweagans/composer-patches: ^1.0
- drupal-composer/drupal-scaffold: ^2.0.1
- drupal/admin_toolbar: ^1.25
- drupal/bootstrap_paragraphs: *
- drupal/breakpoint: *
- drupal/config_direct_save: ^1.0
- drupal/config_installer: ^1.0
- drupal/config_split: ^1.4
- drupal/config_suite: *
- drupal/console: ^1
- drupal/core: ^8
- drupal/draggableviews: ^1.2
- drupal/field_group: ^1.0
- drupal/focal_point: *
- drupal/google_analytics: *
- drupal/paragraphs: *
- drupal/pathauto: *
- drupal/recaptcha: *
- drupal/simple_block: ^1.0@beta
- drupal/webform: *
- drupal/xmlsitemap: *
- drush-ops/behat-drush-endpoint: ^0.0.5
- drush/drush: ~8
- oomphinc/composer-installers-extender: ^1.1
- rvtraveller/qs-composer-installer: ^1.1
- webflo/drupal-core-strict: ^8
Requires (Dev)
- behat/behat: 3.*
- behat/mink: ^1.7
- behat/mink-extension: ^2.2
- behat/mink-goutte-driver: ^1.2
- drupal/drupal-extension: ^3.1
- jcalderonzumba/gastonjs: ^1.0.2
- jcalderonzumba/mink-phantomjs-driver: ^0.3.1
- mikey179/vfsstream: ^1.2
- pantheon-systems/quicksilver-pushback: ~1
- phpunit/phpunit: ^4.8
- symfony/css-selector: ^2.8
Conflicts
This package is auto-updated.
Last update: 2024-08-29 04:43:01 UTC
README
此存储库是从example-drops-8-composer分叉而来的。
此存储库是Xeno Media使用Pantheon的Composer工作流程的起始状态。
安装
首先创建一个新的Drupal 8站点;然后,在安装Drupal之前,将您的站点设置为git模式,并在您的本地计算机上执行以下操作
$ composer create-project xenomedia/xeno-base my-site
$ cd my-site
$ composer prepare-for-pantheon
$ git init
$ git add -A .
$ git commit -m "web and vendor directory from composer install"
$ git remote add origin ssh://ID@ID.drush.in:2222/~/repository.git
$ git push --force origin master
update robo.yml.dist and the env file with your new environment’s name.
Run robo setup
Run the Drupal site setup
Run drush config-get "system.site" uuid
Update config/system.site.yml with your website’s uuid, sitename and email address.
Run drush cim-y
Export your database from adminer.xeno-base.test
Upload your database to the livedb folder on xenostaging.
Update the jenkins file with your website information. Search for SITENAME and replace with the correct site name.
If you make any changes, run drush cex-y
--team
标志是可选的,它指的是一个Pantheon组织。Pantheon组织通常是网络开发机构或大学。设置此参数会导致新创建的站点位于指定的组织中。运行Terminus命令terminus org:list
以查看您是成员的组织。可能没有任何组织。
重要文件和目录
/web
由于pantheon.yml
中的配置,Pantheon将从/web
子目录中提供服务,这促进了基于Composer的工作流程。将您的网站放在此子目录中还允许将与项目相关的测试、脚本和其他文件存储在您的存储库中,而不会污染您的Web文档根。
/config
移动到git根目录的目录之一是/config
。此目录包含Drupal的.yml
配置文件。在更传统的存储库结构中,这些文件将位于/sites/default/config/
。多亏了此行在settings.php
中的设置,配置被完全移动到Web根目录之外。
composer.json
如果您只是在GitHub上浏览此存储库,您可能会注意到Drupal核心本身的文件不包括在此存储库中。这是因为Drupal核心和contrib模块是通过Composer安装的,并且在.gitignore
文件中被忽略。特定的contrib模块通过composer.json
添加到项目中,而composer.lock
则跟踪每个模块(或其他依赖项)的确切版本。composer.json
的“installer-paths”部分确保模块和主题被放置在正确的目录中。此外,composer.json
还包括了drupal-scaffold
的说明,它负责将一些单个文件放置在正确的位置,例如settings.pantheon.php
。
Behat测试
为了让CircleCI有一些测试可以运行,此存储库包含Behat测试的配置。您可以在/tests/features/
中添加自己的.feature
文件。