This commit is contained in:
Alice Harris 2014-09-12 13:09:08 +10:00
parent 62361b6c3b
commit 1503924a2e
3 changed files with 24 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,16 @@
/*
* 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.
*/
/*
require('coffee-script') // for habitrpg-shared
var nconf = require('nconf');
var utils = require('./utils');
@ -36,3 +49,5 @@ async.waterfall([
logging.info("Done initializing database");
mongoose.disconnect();
})
*/

View file

@ -71,8 +71,13 @@ 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 due to this code in src/models/group.js:
## // initialize tavern if !exists (fresh installs)
## Group.count({_id:'habitrpg'},function(err,ct){
## ...
## })
# Uncomment both lines to autostart the habitrpg server when provisioning
# echo Starting HabitRPG server...