After upgrading to Homestead 2.0 on my Yosemite Mac, I'm having problems.
Using vagrant commands (e.g vagrant up) everything is fine. For example in my folder where I have my vagrant file and where I originaly installed Homestead 1.X - ~/myHomestead - I can run vagrant up
and everything is fine.
But I can't load my environment using the Homestead command.
I'm confused about the difference between the Homestead.yaml file in ~/myHomestead
and ~/.homestead
so I've symbolically linked ~/myHomestead/Homestead.yaml
to ~/.homestead/Homestead.yaml
. But still if I do Homestead up
I get an error.
There are errors in the configuration of this machine. Please fix
the following errors and try again:
shell provisioner:
* Shell provisioner `args` must be a string or array.
* Shell provisioner `args` must be a string or array.
I get this error regardless of which directory I run it from: ~/, ~/myHomestead/, ~/.homestead/. I get this same error if I run homestead provision
If I do vagrant box list
it tells me that laravel/homestead is version 0.2.2.
my Homestead.yaml file is here
my ~/.homestead
folder contains just Homestead.yaml
and the .vagrant
folder.
You have this in your yaml-file:
databases: — name: my-craft-site
change it to: databases: — "my-craft-site"
Thanks @justb81. That hasn't worked for me. I made the change you suggested. I no longer get the orginal error, but I now get a different error.
/Users/charlie/.composer/vendor/laravel/homestead/scripts/homestead.rb:67:in `configure': undefined method `each' for "— \"my-craft-site\"":String (NoMethodError)
from /Users/charlie/.composer/vendor/laravel/homestead/Vagrantfile:17:in `block in <top (required)>'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/loader.rb:37:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/loader.rb:37:in `load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:103:in `block (2 levels) in load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:97:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:97:in `block in load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:94:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:94:in `load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/vagrantfile.rb:28:in `initialize'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:691:in `new'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:691:in `vagrantfile'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:441:in `host'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:207:in `block in action_runner'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:33:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:33:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:428:in `hook'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:673:in `unload'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:177:in `ensure in <main>'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:177:in `<main>'
You can see my updated Homestead file.
Really need some help here.
Thanks again Charlie
I'd love some guidance on this. I'm really struggling. Thanks Charlie
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community