Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Jan 13, 2016
1 parent a5a60a8 commit aa252cb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion koa/config.js
Expand Up @@ -4,7 +4,7 @@
'use strict';
module.exports = {
"ip": "127.0.0.1",
"port": 4000,
"port": 8360,
"db": {
url: 'mongodb://user:password@ip/db'
}
Expand Down
4 changes: 2 additions & 2 deletions nodejs/index.js
@@ -1,11 +1,11 @@
const http = require('http');

const hostname = '127.0.0.1';
const port = 1337;
const port = 8360;

http.createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port, hostname, () => {
}).listen(port, '', () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
1 change: 1 addition & 0 deletions sails/config/env/development.js
Expand Up @@ -12,6 +12,7 @@

module.exports = {

port: 8360
/***************************************************************************
* Set the default database connection for models in the development *
* environment (see config/connections.js and config/models.js ) *
Expand Down
2 changes: 2 additions & 0 deletions sails/config/globals.js
Expand Up @@ -10,6 +10,8 @@
*/
module.exports.globals = {

port: 8360

/****************************************************************************
* *
* Expose the lodash installed in Sails core as a global variable. If this *
Expand Down
1 change: 1 addition & 0 deletions thinkjs/package.json
Expand Up @@ -9,6 +9,7 @@
"watch": "npm run watch-compile"
},
"dependencies": {
"thinkjs": "2.1.x",
"babel-runtime": "6.x.x"
},
"devDependencies": {
Expand Down

0 comments on commit aa252cb

Please sign in to comment.