mirror of
https://github.com/fergalmoran/roboto-promoto.git
synced 2025-12-22 01:30:36 +00:00
Routes scaffolding figured out
This commit is contained in:
@@ -19,8 +19,8 @@ User.find({}).remove(function() {
|
||||
);
|
||||
});
|
||||
|
||||
console.log("Creating promotions");
|
||||
Promotion.find({}).remove(function(){
|
||||
console.log("Creating promotions");
|
||||
Promotion.create({
|
||||
title: 'Dev prom 1',
|
||||
user: user
|
||||
@@ -30,7 +30,7 @@ Promotion.find({}).remove(function(){
|
||||
}, {
|
||||
title: 'Dev prom 3',
|
||||
user: user
|
||||
}, function(){
|
||||
}, function(err){
|
||||
console.log('finished populating promotions');
|
||||
});
|
||||
});
|
||||
|
||||
8
lib/config/env/development.js
vendored
8
lib/config/env/development.js
vendored
@@ -1,8 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
env: 'development',
|
||||
mongo: {
|
||||
uri: 'mongodb://localhost/roboto-dev'
|
||||
}
|
||||
env: 'development',
|
||||
mongo: {
|
||||
uri: 'mongodb://localhost/roboto-dev'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user