Reputation: 666
I played with this for far too long, (a week now) and I need some help.
I created a Vagrant config with PuPHPet and it gives me a lot of errors. The simple thing what I'm trying is to run a 12.04 Ubuntu with Nginx, PHP and MySQL.
My problem comes when I add a custom script to the puphpet/files/exec-always
, called provision.sh
as the original documentation writes:
You can run your own custom code after the VM finishes provisioning by adding files to the puphpet/files/exec-always and puphpet/files/exec-once folders.
The following small script:
#!/usr/bin/env bash
cd /project/app
# Run migrations
echo ">> Running migrations"
php ./yiic migrate --interactive=0
My config.yaml
can be found here.
The whole output can be found here.
So I have a clean, PuPHPet generated file structure. What are these errors and why is my script not executed?
And one more thing: My MySQL user, doesn't get the ALL PRIVILEGES
right, phpmyadmin only writes: USAGE. If someone could help with this also, would be more then nice ;)
Upvotes: 3
Views: 2034
Reputation: 1455
In the directories exec-once/exec-always/..
there are files called empty.
That file should be removed for the directory that contains your script, in this case the puphpet/files/exec-always
directory.
Upvotes: 1