Closed ottok closed 3 years ago
Seems Vagrant does not support running commands and sending any kind of input to them, so wp-development-up would always run non-interactively. Thus we need to keep duplicate code in Vagrantfile and wp-development-up.
This method gives you no way to write data back to the remote machine, so only execute commands that don't expect input.
I think I solved this now by simply running wp-development-up
via a system call, they are interactive.
This works now:
By triggering wp-development-up the wp-vagrant-load-db gets triggered correctly and database from shutdown dump is used.
The code in the Vagrantfile is bloated and obsolete anyway, it should simply be running wp-development-up after the Vagrant box is up so that all imports and pulls etc run correctly inside the Vagrant box without depending on the Vagrantfile contents. This makes the project template also better compatible and unified with using Docker.
Related: #164.