- PHP 7.3.8
- Composer 1.8.6
$ docker-compose up --build
$ docker-compose exec app composer install
$ touch database/database.sqlite
$ docker-compose exec app php artisan migrate
$ cp .env.example .env
$ docker-compose exec app php artisan key:generate
$ docker-compose exec app ash
/work $ crond -l 1 -b
/work $ crontab -e
# min hour day month weekday command
*/15 * * * * php /work/artisan oceanService:execute
$ chmod -R 777 logs
$ chmod -R 777 storage/logs
$ chmod -R 777 storage/framework
$ phpunit
詳細は、tests/Services/OceanServiceTest.php
$ php artisan oceanService:execute