You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
After looking at a lot of these ES migration runners I settled on yours, its pretty good.
However there is an issue when running it like so:
› npx elasticsearch-migrate up
/Users/matt/sine/sinecloud-elasticsearch-api/node_modules/.bin/elasticsearch-migrate: line 1: use strict: command not found
/Users/matt/sine/sinecloud-elasticsearch-api/node_modules/.bin/elasticsearch-migrate: line 2: syntax error near unexpected token `('
/Users/matt/sine/sinecloud-elasticsearch-api/node_modules/.bin/elasticsearch-migrate: line 2: `var __importDefault = (this && this.__importDefault) || function (mod) {'
After some investigation I've found that adding a #!/usr/bin/env node shebang to (my-project/node_modules/.bin/elasticsearch-migrate)the issue is resolved.
If the shebang is added to the cli.ts file it is copied across by the TS compiler.
I see what you've done in elasticsearch-migrate/bin/elasticsearch-migrate by importing the built files but it doesn't appear to be working 😞
The text was updated successfully, but these errors were encountered:
Hi,
After looking at a lot of these ES migration runners I settled on yours, its pretty good.
However there is an issue when running it like so:
After some investigation I've found that adding a
#!/usr/bin/env node
shebang to (my-project/node_modules/.bin/elasticsearch-migrate
)the issue is resolved.If the shebang is added to the
cli.ts
file it is copied across by the TS compiler.I see what you've done in
elasticsearch-migrate/bin/elasticsearch-migrate
by importing the built files but it doesn't appear to be working 😞The text was updated successfully, but these errors were encountered: