Skip to content

Commit

Permalink
Using heroku db now
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 9, 2014
1 parent 457a97b commit 6aff011
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/scripts/controllers/users.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ angular.module('angularCmsApp').controller('UsersCtrl', ($scope, DataService) ->

#Add user to database
$scope.addUser = (user) ->
delete user.password if user.password
user.updated_at = new Date()
DataService.save('users', user).then((data) ->
$scope.getUsers()
Expand Down
2 changes: 1 addition & 1 deletion app/views/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h4 class="modal-title" ng-show="user._id">Edit User</h4>
<label class="control-label col-sm-3 col-xs-3">Password:</label>

<div class="controls col-sm-9 col-xs-9">
<input type="password" class="form-control" placeholder="Password" ng-model="user.password">
<input type="password" class="form-control" placeholder="Password" value="{{user.password}}" disabled>
</div>
</div>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"apiBase": "/api/v2",
"version": "v2",
"security": {"salt": "angular-cms"},
"mongodb": "localhost/angular-cms",
"mongodb": "angularcms:[email protected]:10089/app19632340",
"db": {
"name": "angular-cms",
"username": "amadmin",
Expand Down
4 changes: 2 additions & 2 deletions routes/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ var MESSAGES = {
};
var DS = require('jps-ds').DS;
var _ds = new DS({
//host: 'angularcms:[email protected]:10089/app19632340',
host: 'localhost/angular-cms',
host: 'angularcms:[email protected]:10089/app19632340',
//host: 'localhost/angular-cms',
models: {
'groups': {
title: String,
Expand Down

0 comments on commit 6aff011

Please sign in to comment.