How to run (locally):
Linux
- Install the required gems through either
gem install sinatra thin
orbundle install
./scripts/run.sh
Windows
Prep
- install latest ruby version for windows
- run
gem install bundler
- run
bundle install
to ensure all gems are set up locally
Run Locally
- run
rackup
in command prompt from the path that config.ru is in. - Note the port the server starts with (9292 for me)
- Navigate to http://localhost:9292/test in your browser to view the demo page
How to run (Docker):
Linux
- Build the image:
./scripts/build_docker_image.sh
- Run it:
./scripts/run_huntboard_docker_interactive.sh
- Navigate to http://localhost:4567/test in your browser to view the demo page
Windows
Prep
- Ensure that this code repo is located in /opt/HuntBoard
- Ensure Docker is installed on your machine and set up in rubymine: https://www.jetbrains.com/help/ruby/using-docker-as-a-remote-interpreter.html
- Build the image:
docker build -t huntboard ./
from the repo location (/opt/HuntBoard)
Run in Docker
- Run the image as a daemon (mapping in the local code so you can edit on the fly):
docker run -d -p4567:4567 -v /opt/HuntBoard:\opt\HuntBoard huntboard:latest
- Navigate to http://localhost:4567/test in your browser to view the demo page