How to use Mongoose.js with Node.io via the Command Line
When I run my Node.io scraper job from the command line and then try to save the results to MongoDB using Mongoose (the popular third-party library from LearnBoost), the process seems to be exiting before the data is saved. On the other hand, if I programmatically run my Node.io scraper job with a Express.js server and the Node.io start() method, then the process does not exit early and the scraping data is saved to the database. Do you know why there is a different behavior between the CLI and Web interfaces?
Running multiple Node.io Jobs
Also, is there a way to run multiple Node.io Jobs at once from the command line?
Hey @chriso I have a few quick questions:
How to use Mongoose.js with Node.io via the Command Line
When I run my Node.io scraper job from the command line and then try to save the results to MongoDB using Mongoose (the popular third-party library from LearnBoost), the process seems to be exiting before the data is saved. On the other hand, if I programmatically run my Node.io scraper job with a Express.js server and the Node.io
start()
method, then the process does not exit early and the scraping data is saved to the database. Do you know why there is a different behavior between the CLI and Web interfaces?Running multiple Node.io Jobs
Also, is there a way to run multiple Node.io Jobs at once from the command line?
I really appreciate your help! Thank you!