What is the best way to redeploy an alpha version on Heroku, and perform a meteor reset
for the server mongo fixtures to be re-executed on the server?
Couldn't find a good solution. So I need to go in my heroku mongohq interface, and manually remove all collections, then restart heroku.
I resolved this with a custom method for any hosting(only debug, not in Production):
in /server/reset.js
Meteor.methods({
resetear: function() {
Collection1.remove({});
Collection2.remove({});
//And Update Any Collection 3, Flush array embeded
Collection3.update({},{$set:{'usersenrol':[]}},{'multi':true});
}
});
And then, in the Client Console:
Meteor.call('resetear')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With