Ghost-CLI: install failed at Command failed: knex-migrator-migrate --init --mgpath
This issue is a
- Bug Report
Summary
install failed
Steps to Reproduce (for a bug report)
Technical details (will be automatically output by Ghost-CLI if an error occurs):
- OS: Linux
- Node Version: v6.11.1
- Ghost-CLI Version: 1.0.0-rc.4
- Environment:
- Command:
Debug Information:
Node Version: v6.11.1
Ghost-CLI Version: 1.0.0-rc.4
Environment: development
Command: 'ghost install local'
An error occurred.
Message: 'Command failed: knex-migrator-migrate --init --mgpath /var/www/ghost/current
null'
Stack: Error: Command failed: knex-migrator-migrate --init --mgpath /var/www/ghost/current
null
at Promise.all.then.arr (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/ghost-cli/node_modules/execa/index.js:231:11)
at process._tickCallback (internal/process/next_tick.js:109:7)
Code: 1
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 22 (7 by maintainers)
Commits related to this issue
- fix(migration): don't hide migration errors closes #378 - don't ignore stdout, as knex errors are written to it — committed to acburdine/Ghost-CLI by acburdine 7 years ago
- fix(migration): don't hide migration errors closes #378 - don't ignore stdout, as knex errors are written to it — committed to TryGhost/Ghost-CLI by acburdine 7 years ago
So after a fair bit of trial and error, I figured out that the issue is actually the same as the original problem in #281.
The reason that error isn’t getting output is because of some stdio configuration I messed up earlier 😄 will fix that so this error doesn’t happen anymore.
@Penderworth I’m gonna move your issue to a separate one as, although it’s a problem with migrations, it is actually a separate issue.
oh, I’m using
nvmas well ✋@mockee if you run the command manually you’ll have to run
NODE_ENV=production path/to/knex-migrator-> otherwise it creates a development database 😉