generated from google/docsy-example
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ab9cfa
commit 1d36169
Showing
23 changed files
with
109 additions
and
76 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: 开发者指南 | ||
weight: 30 | ||
--- | ||
|
||
开发者指南。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: 模块开发 | ||
weight: 30 | ||
--- | ||
|
||
> 此主题有待编写 |
1 change: 1 addition & 0 deletions
1
content/zh/docs/dev_guide/project.md → content/zh/docs/develop/project.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: 创建项目工程 | ||
weight: 10 | ||
--- | ||
|
||
> 此主题有待编写 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: 主题开发 | ||
weight: 20 | ||
--- | ||
|
||
> 此主题有待编写 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: "快速开始" | ||
linkTitle: "快速开始" | ||
weight: 10 | ||
--- | ||
|
||
|
||
本项目提供了预置的 Docker 镜像,并编排到了模板工程根目录的 `docker-compose.yml` 中。 | ||
|
||
如果使用 `docker-compose`,你将无须关心PHP环境问题,您的电脑啥都不需要安装,除了基本的 `Docker` 服务和 `docker-compose`。 | ||
|
||
如果docker镜像下载慢,请自行了解 [如何加速docker镜像下载](https://www.baidu.com/s?wd=docker%E5%8A%A0%E9%80%9F) | ||
|
||
如果不希望使用 docker 快速安装,也可以参考 [通过传统的手工方式安装](user_guide/install.html) | ||
|
||
先决条件: | ||
- 确保本机8080端口没有被占用。这是因为 `docker-compose.yml` 中需要映射 Web 容器的 80 端口到物理机的 8080 端口。 | ||
|
||
```bash | ||
# 创建 WeeShop 模板工程sdsdfsdf | ||
composer create-project weeshop/project-base:dev-8.x-1.x WeeShop --stability dev --no-interaction -vvv | ||
|
||
# 进行工程目录 | ||
cd WeeShop | ||
|
||
# 启动 docker 容器 | ||
docker-compose up -d | ||
|
||
# 进入 docker 容器 | ||
docker-compose exec web bash | ||
|
||
# 进入容器后,在容器内继续运行下面的命令 | ||
# 安装实例 | ||
su - application -c \ | ||
"cd /app/web/sites && /usr/local/bin/drupal site:install --force --no-interaction weeshop \ | ||
--langcode='en' \ | ||
--db-type='mysql' \ | ||
--db-host='db' \ | ||
--db-name='drupal' \ | ||
--db-user='root' \ | ||
--db-pass='123' \ | ||
--db-port='3306' \ | ||
--site-name='My WeeShop' \ | ||
--site-mail='164713332@qq.com' \ | ||
--account-name='admin' \ | ||
--account-mail='164713332@qq.com' \ | ||
--account-pass='123'" | ||
|
||
# 更新翻译 | ||
su - application -c "cd /app/web/sites && \ | ||
/usr/local/bin/drush -vvv locale:check && \ | ||
/usr/local/bin/drush -vvv locale:update" | ||
``` | ||
|
||
浏览器访问 `http://localhost:8080`,开始体验吧! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: 用户指南 | ||
weight: 20 | ||
--- | ||
|
||
用户指南。 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.