diff --git a/README-CN.md b/README-CN.md index 0c02e0f..c19e423 100644 --- a/README-CN.md +++ b/README-CN.md @@ -606,17 +606,14 @@ require('runtime/build/App.20170505085503.phar'); 执行: -- composer install -- cp .env.example .env -- chmod -R 777 runtime +> composer create-project tigerb/easy-php easy --prefer-dist && cd easy **网站服务模式:** ``` 步骤 1: yarn install 步骤 2: DOMAIN=http://localhost:666 npm run demo -步骤 3: cd public -步骤 4: php -S localhost:666 +步骤 3: cd public && sudo php -S localhost:666 访问网站:http://localhost:666/index.html 访问接口:http://localhost:666/Demo/Index/hello diff --git a/README.md b/README.md index 67c3a85..d58f228 100644 --- a/README.md +++ b/README.md @@ -603,17 +603,14 @@ require('runtime/build/App.20170505085503.phar'); Run: -- composer install -- cp .env.example .env -- chmod -R 777 runtime +> composer create-project tigerb/easy-php easy --prefer-dist && cd easy **Web Server Mode:** ``` step 1: yarn install step 2: DOMAIN=http://localhost:666 npm run demo -step 3: cd public -step 4: php -S localhost:666 +step 3: cd public && sudo php -S localhost:666 visit web:http://localhost:666/index.html visit api:http://localhost:666/Demo/Index/hello