添加自动启动脚本

This commit is contained in:
想打瞌睡 2024-06-22 17:43:55 +08:00
parent f09d62735f
commit 1a1a642ee9
3 changed files with 70 additions and 3 deletions

View File

@ -29,6 +29,7 @@
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/devtool": "~3.1.0",
"hyperf/testing": "~3.1.0",
"hyperf/watcher": "^3.1",
"mockery/mockery": "^1.0",
"phpstan/phpstan": "^1.0",
"swoole/ide-helper": "^5.0"

68
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "88f2a4d4a4e81dc7d415bcdf39930654",
"content-hash": "ae66b1ab4ca638504aaaf2ea78ee7b1b",
"packages": [
{
"name": "carbonphp/carbon-doctrine-types",
@ -6081,6 +6081,72 @@
],
"time": "2024-06-17T01:51:06+00:00"
},
{
"name": "hyperf/watcher",
"version": "v3.1.27",
"source": {
"type": "git",
"url": "https://github.com/hyperf/watcher.git",
"reference": "804dc0a796a10b0bdcda69fca390715dfbe905c9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/watcher/zipball/804dc0a796a10b0bdcda69fca390715dfbe905c9",
"reference": "804dc0a796a10b0bdcda69fca390715dfbe905c9",
"shasum": ""
},
"require": {
"ext-posix": "*",
"hyperf/codec": "~3.1.0",
"hyperf/command": "~3.1.0",
"hyperf/di": "~3.1.0",
"hyperf/framework": "~3.1.0",
"hyperf/support": "~3.1.0",
"php": ">=8.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.1-dev"
},
"hyperf": {
"config": "Hyperf\\Watcher\\ConfigProvider"
}
},
"autoload": {
"files": [
"src/Functions.php"
],
"psr-4": {
"Hyperf\\Watcher\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Hot reload watcher for Hyperf",
"keywords": [
"dev",
"hyperf",
"php"
],
"support": {
"issues": "https://github.com/hyperf/watcher/issues",
"source": "https://github.com/hyperf/watcher/tree/v3.1.27"
},
"funding": [
{
"url": "https://hyperf.wiki/#/zh-cn/donate",
"type": "custom"
},
{
"url": "https://opencollective.com/hyperf",
"type": "open_collective"
}
],
"time": "2024-06-17T01:51:06+00:00"
},
{
"name": "mockery/mockery",
"version": "1.6.12",

View File

@ -1,7 +1,7 @@
version: '3'
services:
hyperf-skeleton:
container_name: hyperf-skeleton
container_name: study
image: hyperf-skeleton
build:
context: .
@ -12,4 +12,4 @@ services:
environment:
- APP_ENV=dev
- SCAN_CACHEABLE=false
entrypoint: ["./entrypoint.sh", 'start'] # 开发环境启动命令
entrypoint: ["./entrypoint.sh", 'server:watch'] # 开发环境启动命令