Skip to content

Commit

Permalink
Changing sync method to daily from hourly
Browse files Browse the repository at this point in the history
Instead of using the broken hourly partial-sync, we'll just do an
exhaustive initial sync daily at midnight.

It sucks to do this against npm, but their API broke and I've not
received a response in a week.

re: npm/npm-registry-couchapp#242
  • Loading branch information
julianlam committed Aug 18, 2015
1 parent ba7e12f commit a59775b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ require('./lib/routes')(app, controllers);

winston.info('NodeBB Package Manager - Initializing');

new cronJob('0 * * * *', packages.registry.sync, null, true);
new cronJob('0 0 * * *', function() {
packages.registry.sync(true); // Sync daily, instead
}, null, true);

app.listen(process.env.PORT || 3000);
winston.info('NodeBB Package Manager - Ready');
Expand Down

0 comments on commit a59775b

Please sign in to comment.