mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
comment-out seed.js because it's no longer required - https://github.com/HabitRPG/habitrpg/issues/3852#issuecomment-55334572
This commit is contained in:
parent
62361b6c3b
commit
1503924a2e
3 changed files with 24 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
15
src/seed.js
15
src/seed.js
|
|
@ -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();
|
||||
})
|
||||
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Reference in a new issue