Open cristianst opened 3 years ago
Also running into this problem via the API on Meteor.js. I think it may have to do with Meteor's build system. They bundle everything into the .meteor
directory in your project. It seems the development file structure if not the same as what actually gets minified and run in your local development environment.
I would rather stay framework agnostic and use this library over a Meteor specific package.
Everything works as expected from the cli but I'd rather have this code run on startup.
Any solutions or ideas?
Describe the bug Migrations folder can not be found in same root folder.
I20201026-19:28:18.793(1)? Error: migrations directory does not exist: /home/cristian-sanchez/editor/.meteor/local/build/programs/server/migrations I20201026-19:28:18.794(1)? at Object.shouldExist (/home/cristian-sanchez/editor/node_modules/migrate-mongo/lib/env/migrationsDir.js:60:13) I20201026-19:28:18.794(1)? => awaited here: I20201026-19:28:18.794(1)? at Function.Promise.await (/home/cristian-sanchez/.meteor/packages/promise/.0.11.2.1i14sd.5id2r++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:56:12) I20201026-19:28:18.794(1)? at imports/api/migrations/healthAPI.js:21:30
To Reproduce I am currently implementing a heath check endpoint and I want to make sure within that endpoint that all migrations have been applied.
File Structure :
Expected behavior I expect the connection to succeed and to get the migration status properly.
Additional context Not sure if its relevant but im using meteor as main framework for the app.