Skip to content

Commit

Permalink
Merge pull request #7 from multilinguals/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
xiaodx12 authored Jul 6, 2018
2 parents 394fc34 + da29503 commit 94fedba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
```bash
$ composer require multilinguals/apollo-client
```
php version >= 5.4 required
php version >= 7.0 required

## Features
- 支持apollo配置变更的适时获取
Expand Down Expand Up @@ -52,7 +52,7 @@ do {

### Docker环境客户端自启动

在docker的启动脚本中加入的启动代码,一般的php容器启动脚本是docker-php-entrypoint
在docker的启动脚本中加入启动代码,一般的php容器启动脚本是docker-php-entrypoint
```bash
if [ -f "/path/to/start.php" ]; then
apollo_ps=$(ps -aux | grep -c "php /path/to/start.php")
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"homepage": "https://github.com/multilinguals/apollo-php-client",
"require": {
"php": ">=5.4 || >=7.0"
"php": "~7.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
require 'vender/autoload.php';
require 'vendor/autoload.php';
use Org\Multilinguals\Apollo\Client\ApolloClient;

//specify address of apollo server
Expand Down

0 comments on commit 94fedba

Please sign in to comment.