-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up your dev environment
!! You'll need to add some ENV vars for AWS training. Please contact @kepricon for details. This is temporary while we're building the mockbackend for training - Slin Feb 12, 2020 !!
The Vagrant image uses the mockbackend by default. To disable it, run this before mvn spring-boot:run > export JOB_MOCK_CYCLE=0
These instructions are meant to be run in the root folder once you clone the pathmind-webapp repo.
If you have Vagrant installed (vagrantup.com), you can set up a local environment with this command:
> vagrant up
This will build a VM and install all the prerequisites and set up the local database.
You can edit files normally using their favorite IDE outside the VM, and then run the server with these commands:
> vagrant up
> vagrant ssh
> mvn clean install
> cd /Vagrant/pathmind-webapp
> mvn spring-boot:run
the first mvn clean install builds the required shared libraries
This might vary system by system, but the local webserver is accessible at 127.0.0.1:8080
-
vagrant provisionwill run the setup script again. This is good if for some reason the environment variables aren't set up correctly, etc - In more extreme cases, you can start from scratch with
vagrant destroy - Make sure your VM has enough RAM allocated to it. I think on VirtualBox the default is 1 GB. If you don't increase it, you're likely to see a JAVA OOM error/Heap Space error