Нема описа

GuesWhoAmI e4b02be7a2 update docker-compose.yml and readme пре 5 година
app b2cd17b82f commit message пре 5 година
bootstrap b2cd17b82f commit message пре 5 година
config b2cd17b82f commit message пре 5 година
database b2cd17b82f commit message пре 5 година
docker b2cd17b82f commit message пре 5 година
public b2cd17b82f commit message пре 5 година
resources b2cd17b82f commit message пре 5 година
routes b2cd17b82f commit message пре 5 година
storage b2cd17b82f commit message пре 5 година
tests b2cd17b82f commit message пре 5 година
.editorconfig b2cd17b82f commit message пре 5 година
.env.example e4b02be7a2 update docker-compose.yml and readme пре 5 година
.gitattributes b2cd17b82f commit message пре 5 година
.gitignore b2cd17b82f commit message пре 5 година
.styleci.yml b2cd17b82f commit message пре 5 година
artisan b2cd17b82f commit message пре 5 година
composer.json b2cd17b82f commit message пре 5 година
composer.lock b2cd17b82f commit message пре 5 година
docker-compose.yml e4b02be7a2 update docker-compose.yml and readme пре 5 година
init.sh b2cd17b82f commit message пре 5 година
install.sql b2cd17b82f commit message пре 5 година
package.json b2cd17b82f commit message пре 5 година
phpunit.xml b2cd17b82f commit message пре 5 година
readme.md e4b02be7a2 update docker-compose.yml and readme пре 5 година
server.php b2cd17b82f commit message пре 5 година
webpack.mix.js b2cd17b82f commit message пре 5 година

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 环境部署

  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