Skip to content
verwebbt edited this page Nov 23, 2014 · 4 revisions

Starting

  • Start in development environment: npm start
    • No authorization
    • Requests made as not authenticated fake user
  • Start in production environment: npm run production or NODE_ENV=production npm start

Don't panic

If anything fails and everything sucks, check this before you freak out:

  • mongod is running
  • old mongo collections (= tables) are deleted
  • old mongo documents (= entries) are deleted
  • sssnap-server is up-to-date
  • node dependencies are installed with npm install or npm update

Some hints:

Message Reason Solution
After start: [Error: failed to connect to [localhost:27017]] Can't connect to mongoDB run mongod
After start, in npm error message, 3rd line: Error: Cannot find module '[name]' Dependency isn't installed run npm install. If error still exists: npm install [name] and open an issue
While running: mongodb error, something with multiple key Most likely: old schema in collection Look up which collection caused the error, then: mongo > use sssnap > db.collection.drop(). Replace collection with name of collection.
Clone this wiki locally