neontabs/nt8-installer

此包已被弃用,不再维护。没有建议的替代包。

适用于带有 composer 的 Drupal 8 项目的项目模板

安装: 0

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 8

分支: 0

开放问题: 3

类型:项目

dev-master 2017-06-07 13:17 UTC

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