Skip to content

Instantly share code, notes, and snippets.

@meriororen
Created June 14, 2020 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meriororen/49668e350fc3c18921282e835b3bc194 to your computer and use it in GitHub Desktop.
Save meriororen/49668e350fc3c18921282e835b3bc194 to your computer and use it in GitHub Desktop.
FTW deployment
# Run this on ubuntu or debian
1. Install Docker
2. Install Docker-Compose
3. Pull https://gitlab.com/hardtmann/fit-to-work-web
4. Open prepare.sh
5. Modify all devices' Vendor ID and Product ID, and save
6. Run prepare.sh with sudo
7. If all is well, when you connect any of the devices, you should see 'tempdev, hbpdev, or pulseoxidev' under /dev
8. Open docker-compose.yml, set "TEMPDEV_ENABLED, HBPDEV_ENABLED, PULSEOXIDEV_ENABLED" to either true or false, depending on your need
9. Run docker-compose up. There should be two services running: mysql, and fit-to-work-web, if everything is ok, the frontend and backend will
run on respectively port 1234 (FE), and port 8008 (BE)
10. Open localhost:1234 to test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment