Skip to content

Commit

Permalink
Changed api constant for development
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahtab Alam committed Dec 24, 2016
1 parent 1375eed commit a9fede1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions models/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var mongoose = require( 'mongoose' );
var bcrypt=require('bcrypt');
var SALT_WORK_FACTOR = 10;

//var dbURI = "mongodb://localhost/test";
var dbURI =process.env.dbURI
var dbURI = "mongodb://localhost/test";
//var dbURI =process.env.dbURI
mongoose.connect(dbURI);

mongoose.connection.on('connected', function () {
Expand Down
6 changes: 3 additions & 3 deletions public/js/constant.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var appConstants=angular.module("app.constants",[])
/*var appConstants=angular.module("app.constants",[])
.constant('CONSTANT',{"API_URL":"http://www.linkository.com"});
*/

/*
var appConstants=angular.module('app.constants',[])
.constant("CONSTANT",{"API_URL":"http://localhost:8080"});*/
.constant("CONSTANT",{"API_URL":"http://localhost:8080"});

0 comments on commit a9fede1

Please sign in to comment.