Vagrant up with parameters

Hi,

we would like to start 2 vagrant boxes from PHPStorm. Currently we do start them using "vagrant up" and "vagrant up test". Is this possible from PHPStorm also? It seems only "vagrant up" can be issued from PHPStorm but not "vagrant up test". Am I right?

3 comments
Comment actions Permalink

Hi there,

Accordingly to this ticket it should be working just fine: https://youtrack.jetbrains.com/issue/PY-9994#comment=27-890648

0
Comment actions Permalink

Hmm, can´t figure it out with the referenced ticket. If I select Tools -> Vagrant -> up it always starts the primary dev machine (vagrant up) but does not ask which one to start so I could start the test machine (vagrant up test). Could you explain in depth how to make this work / screenshots? The vagrant configuration is:

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "crawford81/debian-wheezy64"
    config.vm.define "dev", primary: true do |dev|
        dev.vm.host_name = "dev"
        dev.vm.network :private_network, ip: "192.168.33.22"
        dev.vm.synced_folder "../", "/vagrant", :nfs => false
        dev.vm.provider "virtualbox" do |v|
            v.name = "dev"
            v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1"]
        end
    end
    config.vm.define "test", autostart: false do |test|
        test.vm.host_name = "test"
        test.vm.network :private_network, ip: "192.168.33.23"
        test.vm.provider "virtualbox" do |v|
            v.name = "test"
        end
    end
end

0
Comment actions Permalink

Unfortunately my Vagrant experience is very limited (only tested it few times with simple commands)... but got the same behaviour as you: it does not ask what machine to launch anywhere, even if I set "autostart" to "false" for both of them.

Right now I may only suggest to provide your Vagrantfile and ask this question there (providing screenshots of what you are doing (just in case) as well as exact versions of IDE (build numbers) and vagrant plugin).

0

Please sign in to leave a comment.