Comments (4)
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.
@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.
Ah, there was a problem with the seeding code since updating mongoose, it should be fixed now. Sorry about that.
from pantry-for-good.
Thanks for the notice.
from pantry-for-good.
Related Issues (20)
- Not able to restart app HOT 4
- Add Customer Name to Packed Packages List HOT 3
- Packed package list create a 'contents' tool-tip HOT 2
- Question about debugging HOT 17
- Register as a customer shows not authorized from trying to get foods HOT 1
- How to run the tests correctly? HOT 15
- "Password should be longer" should be displayed to the user, in case, while trying to register a new membership HOT 3
- 'Unknown user or invalid password' should be displayed to the user, in case, while trying to Sign In HOT 9
- Sign up form not validating properly
- Notifications HOT 4
- Issues with running on Windows 10 HOT 2
- secrets.js api keys not being integrated HOT 4
- Proxy google maps api through the server
- Deployment - use data disk for mongodb data
- Deployment - allow passing secrets into the app
- Volunteer Scheduling
- Inventory - Scan and lookup product barcodes on openfoodfacts.org HOT 1
- Use of common constants HOT 1
- npm not working while deploying project locally HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pantry-for-good.