2019-11-18 23:29:48 +08:00
|
|
|
<img src="https://user-gold-cdn.xitu.io/2019/11/18/16e7f1c39b59e52b?w=500&h=500&f=png&s=85055" alt="logo" width="130" height="130" align="right"/>
|
2019-11-18 23:24:35 +08:00
|
|
|
|
2019-11-18 23:31:16 +08:00
|
|
|
# **V2Board**
|
2019-10-29 15:33:36 +08:00
|
|
|
|
|
|
|
- PHP7.3+
|
2019-11-18 23:31:16 +08:00
|
|
|
- Composer
|
2019-10-29 15:33:36 +08:00
|
|
|
- MySQL5.5+
|
2019-11-18 23:31:16 +08:00
|
|
|
- Redis
|
2019-11-18 23:31:26 +08:00
|
|
|
- Laravel
|
2019-10-29 15:33:36 +08:00
|
|
|
|
2019-11-18 23:47:33 +08:00
|
|
|
## 演示
|
2019-11-18 23:29:48 +08:00
|
|
|
|
2019-11-18 23:47:33 +08:00
|
|
|
建设中...
|
|
|
|
演示站点由 👉[Moack](https://www.moack.co.kr/index.php?rp=/announcements/5/11.html)👈 强力驱动
|
2019-10-29 15:33:36 +08:00
|
|
|
|
2019-10-31 11:06:25 +08:00
|
|
|
## 本地环境部署
|
2019-10-29 15:33:36 +08:00
|
|
|
|
|
|
|
1. 下载 composer
|
|
|
|
> ```shell script
|
|
|
|
> wget https://getcomposer.org/download/1.9.0/composer.phar
|
|
|
|
> php composer.phar install
|
|
|
|
> ```
|
2019-10-31 11:06:25 +08:00
|
|
|
2. 从 `install.sql` 文件中恢复表
|
|
|
|
3. 执行 `cp .env.example .env` 然后配置它
|
|
|
|
4. 执行配置脚本
|
2019-10-29 15:33:36 +08:00
|
|
|
> ```shell script
|
|
|
|
> sh init.sh
|
|
|
|
> ```
|
|
|
|
>
|
|
|
|
|
2019-11-18 23:29:48 +08:00
|
|
|
|
2019-10-29 15:33:36 +08:00
|
|
|
|
2019-10-31 11:06:25 +08:00
|
|
|
## Docker 环境部署
|
2019-10-31 14:45:53 +08:00
|
|
|
> 首先 `cp docker-compose.yml.example docker-compose.yml` 选择性修改
|
2019-10-31 11:06:25 +08:00
|
|
|
1. 执行 `docker-compose run --rm db` 进入 docker 容器
|
|
|
|
2. 从 `install.sql` 文件中恢复表后退出容器,执行 `docker-compose down`
|
|
|
|
3. 执行 `cp .env.example .env` 然后配置它
|
|
|
|
4. 执行配置脚本
|
2019-10-29 15:33:36 +08:00
|
|
|
> ```shell script
|
|
|
|
> docker run --rm -v $(pwd):/app composer install
|
|
|
|
> docker run --rm -v $(pwd):/app composer sh init.sh
|
|
|
|
> ```
|
2019-10-31 11:06:25 +08:00
|
|
|
4. 执行 `docker-compose up -d` 启动服务
|
|
|
|
|
|
|
|
## 注意
|
2019-11-18 23:30:09 +08:00
|
|
|
每次修改 `.env` 文件后需要执行 `docker run --rm -v $(pwd):/app composer artisan config:cache`
|
2019-11-18 20:48:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
## 其他
|
2019-11-18 20:49:35 +08:00
|
|
|
Telegram Channel: [@v2board](https://t.me/v2board)
|