Run knex migration during heroku buildpack

Viewed 2064

I'm using the meteor buildpack to deploy my meteor app.

I would like to be able to run a migration with knex at the end of the buildpack installation.

I forked the buildpack to add a shell script in the extra directory (as mentioned in the README) that contains: cd .knex && knex migrate:latest --env staging

Unfortunately, there isn't any .knex directory in the buildpack current directory.

I run ls -a during the heroku buildpack to display the content of the current directory and there isn't a .knex directory:

remote: .
remote: ..
remote: app
remote: assets
remote: boot.js
remote: boot-utils.js
remote: config.json
remote: mini-files.js
remote: node_modules
remote: npm
remote: npm-shrinkwrap.json
remote: package.json
remote: packages
remote: program.json
remote: shell-server.js

Any suggestions?

1 Answers
Related