Skip to content

Commit

Permalink
docs(README): use composer to create a new project 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
TIGERB committed May 15, 2017
1 parent 3477ed8 commit 341f494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 341f494

Please sign in to comment.