【发布时间】:2016-03-23 17:13:38
【问题描述】:
我正在使用 the meteor buildpack 来部署我的流星应用程序。
我希望能够在 buildpack 安装结束时使用 knex 运行迁移。
我派生了 buildpack 以在 extra 目录中添加一个 shell 脚本(如 README 中所述),其中包含:cd .knex && knex migrate:latest --env staging
很遗憾,buildpack 当前目录中没有任何.knex 目录。
我在 heroku buildpack 期间运行 ls -a 以显示当前目录的内容,但没有 .knex 目录:
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
有什么建议吗?
【问题讨论】: