Skip to content

How to use the vbox as a submodule

Sebastian Baum edited this page Jan 24, 2020 · 1 revision

How to use the vbox as a submodule

The cool thing following this approach is, that you can easily update to a new version of vbox. Your vbox is under version control.

Steps

  1. Create a new folder/project
  2. Initialize a new git repo
    git init
  3. Add ion2s-gmbh/vbox as a submodule.
    git submodule add [email protected]:ion2s-gmbh/vbox.git
  4. Copy the box.sample.yml file and name it box.yml
    cp configure/box.sample.yml configure/box.yml
  5. Change the box.yml according to your needs.
    Most relevant are these configs:
    BOX_NAME: <your-name>
    HOST_SRC_FOLDER: ./src
      # ./../     # -> place your code beside the vbox folder
      # ./../src  # -> place your code in src folder beside the vbox folder.
    If you don't change it, you get presented the php info page which is served from the src folder inside of vbox
  6. Vagrant up the box for the first time.
Clone this wiki locally