Skip to content

Commit

Permalink
config changed start bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Apr 23, 2016
1 parent 159d943 commit d7fc129
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ $ auth-center -h
-v, --version output the version number
$ auth-center init
$ auth-center start -h
Usage: auth-center start [options]
Expand All @@ -62,6 +63,7 @@ $ auth-center start -h
--config <path> custom config path
--sync sync database to generate tables
--data <path> init data with json file
```

#### 2. 采用引入方式执行
Expand Down
1 change: 1 addition & 0 deletions bin/_config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
/*Redis*/const redisStore = require('koa-redis');/*Redis*/
module.exports = {
isTOTP: true,
/*MySQL*/orm: {
dialect: 'mysql',
database: 'db_auth',
Expand Down
1 change: 1 addition & 0 deletions bin/start.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const AuthServer = require('../app');
const co = require('co');
const existsSync = require('fs').existsSync;

module.exports = function(options) {
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const _config = {
accessTokenTTL: 60 * 60,
// ORM config
orm: {
db: ':memory:',
database: ':memory:',
dialect: 'sqlite',
modelPath: join(__dirname, 'models')
},
Expand Down

0 comments on commit d7fc129

Please sign in to comment.