お世話になっております。
ただいまLaravel Homesteadの環境構築を行っております。
こちらのサイトを参考にさせていただいてます。
http://foresta.me/?p=74
端的に申し上げますと「homestead up」でvagrantを立ち上げる際にエラーが発生します。
[エラー] Bringing machine 'default' up with 'virtualbox' provider... 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.
同じような事象が発生した方や、エラーに検討がつく方がいましたら、知恵をお借りしたいです。
Googleでエラー内容を検索したりしましたが、解決できませんでした。
よろしくお願い致します。
以下に補足として情報を記載しておきます。
・PC:mac
・virtual boxのバージョン:5.0.4
・vagrantのバージョン:1.7.4
・laravel homesteadのバージョン:2.1.8
・OS:Ubuntu (14.04.3 LTS)
・「vagrant up」でも同じエラーが出る
・「vagrant list」「homestead list」は問題なく実行できる
・homestead.yamlは以下の記述です。
--- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub key: - ~/.ssh/id_rsa folders: - map: /Users/my_user_name/my_cookbook/work/laravel to: /home/vagrant/Code/laravel sites: - map: homestead.app to: /home/vagrant/Code/laravel/public
・VagrantFileは以下の記述です。
require 'json' require 'yaml' VAGRANTFILE_API_VERSION = "2" confDir = $confDir ||= File.expand_path("~/.homestead") homesteadYamlPath = confDir + "/Homestead.yaml" homesteadJsonPath = confDir + "/Homestead.json" afterScriptPath = confDir + "/after.sh" aliasesPath = confDir + "/aliases" require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb') Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if File.exists? aliasesPath then config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" end if File.exists? homesteadYamlPath then Homestead.configure(config, YAML::load(File.read(homesteadYamlPath))) elsif File.exists? homesteadJsonPath then Homestead.configure(config, JSON.parse(File.read(homesteadJsonPath))) end if File.exists? afterScriptPath then config.vm.provision "shell", path: afterScriptPath end end
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。