代码拉取完成,页面将自动刷新
# Commonly used commands, compatible with Linux type shells
# build the docker images for any environment
build:
docker build --tag attendize_base --target base .
docker build --tag attendize_worker --target worker --cache-from attendize_base:latest .
docker build --tag attendize_web --target web --cache-from attendize_worker:latest .
build-apache:
docker build --tag attendize_base --target base --file Dockerfile-apache .
docker build --tag attendize_worker --target worker --cache-from attendize_base:latest --file Dockerfile-apache .
docker build --tag attendize_web --target web --cache-from attendize_worker:latest --file Dockerfile-apache .
################
# The following commands are for local development use only and won't work in a production environment
################
# set up docker images and run containers for local development with docker-compose only
setup: build
cp .env.example .env
docker-compose up -d
docker-compose exec web sh -c 'wait-for-it db:3306 -t 180 && php artisan key:generate && php artisan migrate'
docker-compose up -d
docker-compose exec web sh -c 'wait-for-it web:443 -t 120'
open https://localhost:8081/install
docker-compose exec web tail -f /var/log/nginx/access.log /var/log/nginx/error.log /var/log/php-fpm.log storage/logs/*
# run the whole stack and open up the app in the browser
run:
docker-compose up -d
docker-compose exec web sh -c 'wait-for-it db:3306 -t 180'
docker-compose exec web sh -c 'wait-for-it web:443 -t 120'
open https://localhost:8081/
# open a bash prompt on a running web container
shell:
docker-compose exec web /bin/bash
# run the unit tests on a running web container
test:
docker-compose exec web bash -c "touch database/database.sqlite && vendor/bin/phpunit"
# clear all laravel caches on a running web container
cache:
docker-compose exec web php artisan optimize:clear
# clear and recompile the autoloder files, for example if you add a new class file
autoload:
docker-compose exec web composer dump-autoload
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。