phinx: Error when trying to run init
platform: windows8
trying to run: php vendor/bin/phinx init
output result:
SRC_DIR=“pwd”
cd “dirname "$0"”
cd “…/robmorgan/phinx/bin”
BIN_TARGET=“pwd/phinx”
cd “$SRC_DIR”
“$BIN_TARGET” “$@”
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 27 (5 by maintainers)
I have the same problem on Windows 8.1, the workaround is to run phinx like this:
php vendor/robmorgan/phinx/bin/phinx init
On windows running vendor\bin\phinx init will result in the same error result What i found out was just go to the source instead vendor\robmorgan\phinx\bin\phinx I am on windows 8 right now this works like a charm and just setup a alias for it so you do not have to write all that every single time you want a new migrations.
@markushausammann I believe I did this:
This skips the bin build and using the php phinx file directory.
@zhanjh Changing code of the package is out of the question.