Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
In order to load fixtures to get DemocracyOS up and running, follow these steps from the project's path:
node ./bin/dos-db load tag ./lib/fixtures/tags.jsonto get tags loaded.
node ./bin/dos-db load topic ./lib/fixtures/topics.jsonto get recent topics loaded.
If you want to load your own, make sure your
json files match the standard an also that the comply with the matching
If, when running these scripts, you get an error that looks like
unable to find file xxx make sure you're running it from the project's root path and prepend
NODE_PATH=. to your command line call. It should be somthing like
NODE_PATH=. node ./bin/dos-db load ....
In order to load fixtures in remote heroku app you can Run
node ./bin/dos-db load topic ./lib/fixtures/topics.json -U mongodb://<heroku-url@host:port/user>