Skip to content

Commit 219afcf

Browse files
committed
update some info, fix docker compose
1 parent de4a713 commit 219afcf

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
runtime

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
[![Latest Stable Version](http://img.shields.io/packagist/v/swoft/swoft.svg)](https://packagist.org/packages/swoft/swoft)
88
[![Build Status](https://travis-ci.org/swoft-cloud/swoft.svg?branch=master)](https://travis-ci.org/swoft-cloud/swoft)
9-
[![Docker Build Status](https://img.shields.io/docker/build/swoft/alphp.svg)](https://hub.docker.com/r/swoft/alphp/)
9+
[![Docker Build Status](https://img.shields.io/docker/build/swoft/swoft.svg)](https://hub.docker.com/r/swoft/swoft/)
1010
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000)](https://secure.php.net/)
1111
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=4.3.3-brightgreen.svg?maxAge=2592000)](https://github.com/swoole/swoole-src)
1212
[![Swoft Doc](https://img.shields.io/badge/docs-passing-green.svg?maxAge=2592000)](https://www.swoft.org/docs)
1313
[![Swoft License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](https://github.com/swoft-cloud/swoft/blob/master/LICENSE)
1414
[![Gitter](https://img.shields.io/gitter/room/swoft-cloud/swoft.svg)](https://gitter.im/swoft-cloud/community)
1515

16-
![](public/image/start-http-server.jpg)
16+
![start-http-server](https://raw.githubusercontent.com/swoft-cloud/swoft/master/public/image/start-http-server.jpg)
1717

1818
PHP microservices coroutine framework
1919

README.zh-CN.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
[![Latest Stable Version](http://img.shields.io/packagist/v/swoft/swoft.svg)](https://packagist.org/packages/swoft/swoft)
88
[![Build Status](https://travis-ci.org/swoft-cloud/swoft.svg?branch=master)](https://travis-ci.org/swoft-cloud/swoft)
9-
[![Docker Build Status](https://img.shields.io/docker/build/swoft/alphp.svg)](https://hub.docker.com/r/swoft/alphp/)
9+
[![Docker Build Status](https://img.shields.io/docker/build/swoft/swoft.svg)](https://hub.docker.com/r/swoft/swoft/)
1010
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000)](https://secure.php.net/)
1111
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=4.3.3-brightgreen.svg?maxAge=2592000)](https://github.com/swoole/swoole-src)
1212
[![Swoft Doc](https://img.shields.io/badge/docs-passing-green.svg?maxAge=2592000)](https://www.swoft.org/docs)
1313
[![Swoft License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](https://github.com/swoft-cloud/swoft/blob/master/LICENSE)
14+
[![Gitter](https://img.shields.io/gitter/room/swoft-cloud/swoft.svg)](https://gitter.im/swoft-cloud/community)
1415

15-
![](public/image/start-http-server.jpg)
16+
![start-http-server](https://raw.githubusercontent.com/swoft-cloud/swoft/master/public/image/start-http-server.jpg)
1617

1718
PHP 高性能微服务协程框架
1819

app/Application.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php declare(strict_types=1);
22

3-
43
namespace App;
54

6-
75
use Swoft\SwoftApplication;
86

97
/**

bin/swoft

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
// Bootstrap
55
require_once __DIR__ . '/bootstrap.php';
66

7-
\Swoole\Runtime::enableCoroutine();
8-
97
Swoole\Coroutine::set([
108
'max_coroutine' => 300000,
119
]);
1210

1311
// Run application
14-
(new \App\Application())->run();
12+
(new \App\Application())->run();

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,16 @@
2424
"swoft/rpc-client": "~2.0.0",
2525
"swoft/rpc-server": "~2.0.0",
2626
"swoft/websocket-server": "~2.0.0",
27-
"swoft/tcp": "~2.0.0",
2827
"swoft/tcp-server": "~2.0.0",
2928
"swoft/apollo": "~2.0.0",
3029
"swoft/consul": "~2.0.0",
3130
"swoft/limiter": "~2.0.0",
32-
"swoft/breaker": "~2.0.0"
31+
"swoft/breaker": "~2.0.0",
32+
"swoft/devtool": "~2.0.0"
3333
},
3434
"require-dev": {
3535
"swoft/swoole-ide-helper": "dev-master",
36-
"phpunit/phpunit": "^7.5",
37-
"swoft/devtool": "~2.0.0"
36+
"phpunit/phpunit": "^7.5"
3837
},
3938
"autoload": {
4039
"psr-4": {

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "18307:18307"
1616
- "18308:18308"
1717
volumes:
18-
- ./:/var/www
18+
- ./:/var/www/swoft
1919
# - ./tmp/ng-conf:/etc/nginx
2020
# - ./tmp/logs:/var/log
2121

@@ -27,7 +27,7 @@ services:
2727
ports:
2828
- "13306:3306"
2929
volumes:
30-
- ./tmp/data/mysql:/var/lib/mysql
30+
- ./runtime/data/mysql:/var/lib/mysql
3131
restart: always
3232

3333
redis:

0 commit comments

Comments
 (0)