Brak opisu

GuesWhoAmI d30faa5a60 update 5 lat temu
app b2cd17b82f commit message 5 lat temu
bootstrap b2cd17b82f commit message 5 lat temu
config b2cd17b82f commit message 5 lat temu
database b2cd17b82f commit message 5 lat temu
docker b2cd17b82f commit message 5 lat temu
public b2cd17b82f commit message 5 lat temu
resources b2cd17b82f commit message 5 lat temu
routes b2cd17b82f commit message 5 lat temu
storage b2cd17b82f commit message 5 lat temu
tests b2cd17b82f commit message 5 lat temu
.editorconfig b2cd17b82f commit message 5 lat temu
.env.example e4b02be7a2 update docker-compose.yml and readme 5 lat temu
.gitattributes b2cd17b82f commit message 5 lat temu
.gitignore d30faa5a60 update 5 lat temu
.styleci.yml b2cd17b82f commit message 5 lat temu
artisan b2cd17b82f commit message 5 lat temu
composer.json b2cd17b82f commit message 5 lat temu
composer.lock b2cd17b82f commit message 5 lat temu
docker-compose.yml.example d30faa5a60 update 5 lat temu
init.sh b2cd17b82f commit message 5 lat temu
install.sql b2cd17b82f commit message 5 lat temu
package.json b2cd17b82f commit message 5 lat temu
phpunit.xml b2cd17b82f commit message 5 lat temu
readme.md d30faa5a60 update 5 lat temu
server.php b2cd17b82f commit message 5 lat temu
webpack.mix.js b2cd17b82f commit message 5 lat temu

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