neontabs / nt8-installer
此包已被弃用,不再维护。没有建议的替代包。
适用于带有 composer 的 Drupal 8 项目的项目模板
dev-master
2017-06-07 13:17 UTC
Requires
- composer/installers: ^1.2
- cweagans/composer-patches: ^1.6
- drupal-composer/drupal-scaffold: ^2.2
- drupal/config_installer: ^1.4
- drupal/console: ~1.0
- drupal/core: ~8.0
- drush/drush: ~8.0
- neontabs/nt8booking: dev-develop
- neontabs/nt8landingpage: dev-develop
- neontabs/nt8map: dev-develop
- neontabs/nt8property: dev-develop
- neontabs/nt8propertyshortlist: dev-develop
- neontabs/nt8search: dev-develop
- neontabs/nt8tabsio: dev-develop
- neontabs/nt8theme: dev-develop
- webflo/drupal-finder: ^0.2.1
- webmozart/path-util: ^2.3
Requires (Dev)
- behat/mink: ~1.7
- behat/mink-goutte-driver: ~1.2
- jcalderonzumba/gastonjs: ~1.0.2
- jcalderonzumba/mink-phantomjs-driver: ~0.3.1
- mikey179/vfsstream: ~1.2
- phpunit/phpunit: >=4.8.28 <5
- symfony/css-selector: ~2.8
Conflicts
This package is not auto-updated.
Last update: 2020-06-05 09:11:37 UTC
README
使用 nt8 安装 drupal 8,一键到位
composer \
create-project neontribe/nt8-installer EntyAte \
--stability dev \
--no-interaction
使用虚拟机运行
切换到 vagrant 文件所在的文件夹
cd EntyAte
运行 Vagrant up
vagrant up
在本地机器上运行
使用现有配置(无内容)创建网站。
echo "Clone Drupal Configuration Files"
cd EntyAte
mkdir -p config/sync
cd $_
git clone git@github.com:neontabs/nt8config.git .
echo "Site install using configuration files."
cd ../../web
drush \
-y site-install config_installer config_installer_sync_configure_form.sync_directory=../config/sync \
--db-url=sqlite://sites/default/files/.ht.sqlite \
--account-mail=${USER}@neontribe.co.uk \
--account-name=superadmin \
--site-mail=${USER}@neontribe.co.uk
从头开始创建网站(无配置)。
drush \
-y site-install \
--db-url=sqlite://sites/default/files/.ht.sqlite \
--account-mail=${USER}@neontribe.co.uk \
--account-name=superadmin \
--site-mail=${USER}@neontribe.co.uk \
--site-name=EntyAte
或者对于 SQL 数据库
drush \
-y site-install \
--db-url=mysql://EntyAte:EntyAte@localhost/EntyAte \
--account-mail=${USER}@neontribe.co.uk \
--account-name=superadmin \
--site-mail=${USER}@neontribe.co.uk \
--site-name=EntyAte
检查输出以查找随机的超级管理员密码
启用 nt8 模块
drush -y en nt8theme
drush -y config-set system.theme default nt8theme
drush -y en nt8property nt8propertyshortlist
drush -y en nt8map nt8search
drush -y en nt8propertyshortlist nt8landingpage
drush -y nt8:ia
drush -y cr
Compass 编译
compass compile themes/contrib/nt8theme/
将文件的所有权更改为以 www-data 用户运行
sudo chown -R www-data:www-data sites/default/files
或者使用 drush 运行
drush rs