update README.md

pull/26/merge
Bosn 7 years ago
parent 503dcf4d25
commit 336c522540

@ -32,11 +32,12 @@ npm run dev
### production ### production
```sh ```sh
# 1. config server API path in /src/config/config.prod.js(production config file)
# produce react production package # 2. produce react production package
npm run build npm run build
# use serve or nginx to serve the static build directory # 3. use serve or nginx to serve the static build directory
serve -s ./build -p 80 serve -s ./build -p 80
``` ```

@ -1,5 +1,5 @@
module.exports = { module.exports = {
serve: 'https://rap2api.alibaba-inc.com', serve: 'http://rap2api.taobao.org',
keys: ['some secret hurr'], keys: ['some secret hurr'],
session: { session: {
key: 'koa:sess' key: 'koa:sess'

Loading…
Cancel
Save