Coder Social home page Coder Social logo

Comments (4)

jspaine avatar jspaine commented on May 27, 2024

Hi, you shouldn't need to recreate it, it's seeded automatically except existing collections aren't overwritten by default. So deleting the db and starting the app should recreate everything, alternatively change line 46 of server/config/express.js to seed(process.env.NODE_ENV, true, true) and run the app, then reset that line.

from pantry-for-good.

gomezvillegasdaniel avatar gomezvillegasdaniel commented on May 27, 2024

@jspaine thanks but it didn't work. My mongo is broken I guess. This is the nodejs runtime error:
/home/daniel/freecodecamp/pantry-for-good/node_modules/mongoose/lib/utils.js:214 throw error; ^ TypeError: callback.apply is not a function

and the mongo logs are these:
Server has startup warnings: 2018-03-22T13:49:36.939-0600 I STORAGE [initandlisten] 2018-03-22T13:49:36.939-0600 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2018-03-22T13:49:36.939-0600 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2018-03-22T13:49:40.217-0600 I CONTROL [initandlisten] 2018-03-22T13:49:40.217-0600 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-03-22T13:49:40.217-0600 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-03-22T13:49:40.217-0600 I CONTROL [initandlisten] 2018-03-22T13:49:40.218-0600 I CONTROL [initandlisten] 2018-03-22T13:49:40.218-0600 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. 2018-03-22T13:49:40.218-0600 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2018-03-22T13:49:40.218-0600 I CONTROL [initandlisten]

All of this was due to I dropped the fb-dev db in order to create a new one and start trying from a clean db..

from pantry-for-good.

jspaine avatar jspaine commented on May 27, 2024

Ah, there was a problem with the seeding code since updating mongoose, it should be fixed now. Sorry about that.

from pantry-for-good.

gomezvillegasdaniel avatar gomezvillegasdaniel commented on May 27, 2024

Thanks for the notice.

from pantry-for-good.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.