Skip to content

Commit

Permalink
Merge pull request #33 from christroutner/unstable
Browse files Browse the repository at this point in the history
fix(api docs): Moving port to 5001, and making api docs the default f…
  • Loading branch information
christroutner committed Jun 3, 2019
2 parents c98ae3e + 0592517 commit d349d26
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/server.js
Expand Up @@ -34,7 +34,7 @@ async function startServer () {
app.use(errorMiddleware())

// Used to generate the docs.
app.use(convert(mount('/docs', serve(`${process.cwd()}/docs`))))
app.use(mount('/', serve(`${process.cwd()}/docs`)))

// User Authentication
require('../config/passport')
Expand Down
2 changes: 1 addition & 1 deletion config/env/common.js
Expand Up @@ -4,5 +4,5 @@
*/

module.exports = {
port: process.env.PORT || 5000
port: process.env.PORT || 5001
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
},
"repository": "christroutner/koa-api-boilerplate",
"dependencies": {
"apidoc": "^0.17.6",
"apidoc": "^0.17.7",
"bcryptjs": "^2.4.3",
"glob": "^7.0.0",
"jsonwebtoken": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion test/utils.js
Expand Up @@ -2,7 +2,7 @@ const mongoose = require('mongoose')
const rp = require('request-promise')
const config = require('../config')

const LOCALHOST = 'http://localhost:5000'
const LOCALHOST = `http://localhost:${config.port}`

// Remove all collections from the DB.
async function cleanDb () {
Expand Down

0 comments on commit d349d26

Please sign in to comment.