From 4efa7f1ee78fc3d4056c55265a21bc6e2d660185 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 9 Dec 2020 14:41:05 -0500 Subject: [PATCH] update Vagrantfile and docs --- Vagrantfile | 7 ++++--- docs/dev.md | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 2462c9b3..1337d5d0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -57,16 +57,17 @@ Vagrant.configure("2") do |config| s.env = { LETSENCRYPT_EMAIL: ENV['LETSENCRYPT_EMAIL'] } s.privileged = false s.inline = <<-SHELL - cd /vagrant + # Copy shared bubble dir to ${HOME} + rsync -a /vagrant ${HOME}/bubble # Initialize the system - ./bin/first_time_ubuntu.sh + cd ${HOME}/bubble && ./bin/first_time_ubuntu.sh # Clone and build all dependencies SKIP_BUBBLE_BUILD=1 ./bin/first_time_setup.sh # Build the bubble jar - BUBBLE_PRODUCTION=1 mvn -DskipTests=true -Dcheckstyle.skip=true -Pproduction clean package + BUBBLE_PRODUCTION=1 mvn -DskipTests=true -Dcheckstyle.skip=true -Pproduction clean package 2>&1 | tee /tmp/build.log # Write bubble API port echo \"export BUBBLE_SERVER_PORT=${BUBBLE_PORT}\" > ~/.bubble.env diff --git a/docs/dev.md b/docs/dev.md index 948b3ec2..c7272e2e 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -7,7 +7,10 @@ and the [Bubble API Reference](https://app.getbubblenow.com/apidocs/) # Vagrant Setup The easiest way to get started with Bubble is to install [Vagrant](https://www.vagrantup.com/) and use -the Bubble [Vagrantfile](../Vagrantfile): +the Bubble [Vagrantfile](../Vagrantfile). + +There are a few environment variables you can use to configure how the Vagrant box is initialized. +Read the Bubble [Vagrantfile](../Vagrantfile) to find out more about these settings. ```shell script vagrant up