EDIT : Updated to use Iron Router, the successor to Meteor Router.
No need for a headless browser or anything complicated. Use Meteorite to install Iron Router and determine server-sided route:
Router.map(function () { this.route('clearCache', { where: 'server', action: function () {
Then try running a cronjob HTTP GET request for this URI:
curl http:
When the Meteor server receives a GET request, the router will execute your code.
To increase security a bit, add a password check:
Router.map(function () { this.route('clearCache', { path: '/clearCache/:password', where: 'server', action: function () { if (this.params.password == '2d1QZuK3R3a7fe46FX8huj517juvzciem73') {
And let your cronjob add this password to the URI:
curl http:
Original post :
No need for a headless browser or anything complicated. Use Meteorite to install the Meteor Router and determine the server-sided route:
Meteor.Router.add('/clearCache', function() {
Then try running a cronjob HTTP GET request for this URI:
curl http:
When the Meteor server receives a GET request, the router will execute your code.
To increase security a bit, add a password check:
Meteor.Router.add('/clearCache/:password', function(password) { if (password == '2d1QZuK3R3a7fe46FX8huj517juvzciem73') {
And let your cronjob add this password to the URI:
curl http: