You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slin Lee edited this page Mar 14, 2020
·
20 revisions
!! 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 spring-boot:run
This might vary system by system, but the local webserver is accessible at 127.0.0.1:8080
Troubleshooting tips:
vagrant provision will 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