Thank you so much Dennis, it works and the box is installed correctly :) But Im having another problem now |:, this time on the *provision.sh*
So actually no need to add the installation of the PHP/Apache/MySQL packages because when I packaged my Box and Installed it on my machine for testing, all the configs are good. Now what I want to do is to create a folder, configure my Apache Server so the document root will be directly my *drupal *folder, and the most important is to clone the drupal folder that I've been working, wich is on my repo *drupal* on the *gitlab*, wich is a public repo. So I wrote this provision shell script : Pastebin <https://pastebin.com/WwHfnZzu> I pasted the code on Pastebin, much more cleaner than here (: . Now the problem here, is that nothing is cloned, it hangs on this message : *default: Cloning into '.'...* Le mercredi 29 mai 2019 23:45:02 UTC+2, Dennis Chang a écrit : > > Hi Zeus_Dev, > > I think I understand why it's not working. > > When you run the command 'vagrant up myproject' this command looks for a > machine named myproject to start up. > If it doesn't find it, it looks for a Vagrantfile in the local directory > (which I'm guessing is the original Vagrantfile). > So it starts up from the original box you used in your Vagrantfile. > > if you uploaded your box to a Vagrant cloud, then you need to reference > that box in a new Vagrantfile (not use the old one). > > So let me be specific: > > # old Vagrantfile (pretend your using bento/ubuntu-14.04 as base box to > create your drupal server) > Vagrant.configure("2") do |config| > config.vm.box = "bento/ubuntu-14.04" > # you did all your provisioning in a script > end > > # after you package the machine (lets say it's called > zeus_dev/drupalproject) > # those project files should already be inside the box > > # new Vagrantfile > Vagrant.configure("2") do |config| > config.vm.box = "zeus_dev/drupalproject" > config.vm.box_url = " > https://vagrantcloud.com/put-the-url-of-the-box-here" > end > > So inside a new directory, with a new Vagrantfile which references your > vagrant-cloud box. > You can spin up a new machine (and it should already contain your drupal > project files). > > Remember, package takes a machine and turns it into a box. When you do > 'vagrant up' it takes a box and creates a machine. > I think what you did wrong is that you're not referencing correctly the > box you created. > > Hope that helps, > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/05940e2a-63b3-4332-ad3b-6b805edf750b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
