Sem descrição

root f59ec7954e update há 5 anos atrás
app d84bf16082 update há 5 anos atrás
bootstrap b2cd17b82f commit message há 5 anos atrás
config b2cd17b82f commit message há 5 anos atrás
database b2cd17b82f commit message há 5 anos atrás
docker b2cd17b82f commit message há 5 anos atrás
public b2cd17b82f commit message há 5 anos atrás
resources b2cd17b82f commit message há 5 anos atrás
routes b2cd17b82f commit message há 5 anos atrás
storage b2cd17b82f commit message há 5 anos atrás
tests b2cd17b82f commit message há 5 anos atrás
.editorconfig b2cd17b82f commit message há 5 anos atrás
.env.example e4b02be7a2 update docker-compose.yml and readme há 5 anos atrás
.gitattributes b2cd17b82f commit message há 5 anos atrás
.gitignore d30faa5a60 update há 5 anos atrás
.styleci.yml b2cd17b82f commit message há 5 anos atrás
artisan b2cd17b82f commit message há 5 anos atrás
composer.json f59ec7954e update há 5 anos atrás
composer.lock b2cd17b82f commit message há 5 anos atrás
docker-compose.yml.example d30faa5a60 update há 5 anos atrás
init.sh b2cd17b82f commit message há 5 anos atrás
install.sql c59c6565e3 update há 5 anos atrás
package.json b2cd17b82f commit message há 5 anos atrás
phpunit.xml b2cd17b82f commit message há 5 anos atrás
readme.md d30faa5a60 update há 5 anos atrás
server.php b2cd17b82f commit message há 5 anos atrás
webpack.mix.js b2cd17b82f commit message há 5 anos atrás

readme.md

依赖环境:

  • PHP7.3+
  • composer
  • MySQL5.5+

本地环境部署

  1. 下载 composer > shell script > wget https://getcomposer.org/download/1.9.0/composer.phar > php composer.phar install >
  2. install.sql 文件中恢复表
  3. 执行 cp .env.example .env 然后配置它
  4. 执行配置脚本 > shell script > sh init.sh > >

Docker 环境部署

首先 cp docker-compose.yml.example docker-compose.yml 选择性修改

  1. 执行 docker-compose run --rm db 进入 docker 容器
  2. install.sql 文件中恢复表后退出容器,执行 docker-compose down
  3. 执行 cp .env.example .env 然后配置它
  4. 执行配置脚本 > shell script > docker run --rm -v $(pwd):/app composer install > docker run --rm -v $(pwd):/app composer sh init.sh >
  5. 执行 docker-compose up -d 启动服务

注意

每次修改 .env 文件后需要执行 docker run --rm -v $(pwd):/app composer sh init.sh