Merge pull request #4024 from Alys/seedjs

comment-out seed.js because it's no longer required
This commit is contained in:
Tyler Renelle 2014-09-12 13:39:12 -06:00
commit 09e43a3560
3 changed files with 22 additions and 7 deletions

View file

@ -19,8 +19,7 @@ Before starting make sure to have [MongoDB](http://www.mongodb.org/), [NodeJS an
1. Install our dependencies: `npm install`
1. Create a config file from the example one:
`cp config.json.example config.json`
1. Ensure that Mongo is running and seed the database with initial settings by running:
`node src/seed.js`.
1. Ensure that Mongo is running
## Windows Environment Install
@ -63,9 +62,7 @@ Before starting make sure to have [MongoDB](http://www.mongodb.org/), [NodeJS an
`bower install -f`
1. Create a config file from the example one:
`copy config.json.example config.json`
1. Ensure that Mongo is running and seed the database with initial settings by r
unning:
`node src\seed.js`.
1. Ensure that Mongo is running
# Run HabitRPG

View file

@ -1,3 +1,18 @@
/*
* This script is no longer required due to this code in src/models/group.js:
* // initialize tavern if !exists (fresh installs)
* Group.count({_id:'habitrpg'},function(err,ct){
* ...
* })
*
* However we're keeping this script in case future seed updates are needed.
*
* Reference: https://github.com/HabitRPG/habitrpg/issues/3852#issuecomment-55334572
*/
/*
require('coffee-script') // for habitrpg-shared
var nconf = require('nconf');
var utils = require('./utils');
@ -36,3 +51,5 @@ async.waterfall([
logging.info("Done initializing database");
mongoose.disconnect();
})
*/

View file

@ -71,8 +71,9 @@ npm install
echo Installing Bower packages
sudo -H -u vagrant bower --config.interactive=false install -f
echo Seeding Mongodb...
node ./src/seed.js
## # echo Seeding Mongodb...
## node ./src/seed.js
## no longer required - see comments in src/seed.js
# Uncomment both lines to autostart the habitrpg server when provisioning
# echo Starting HabitRPG server...