assembleco / slim

A (slim) System for Laboratory Information Management
https://stoic-pare-ea69d2.netlify.com/
0 stars 1 forks source link

Use Draft to host the server while developing. #17

Closed c-lliope closed 6 years ago

c-lliope commented 6 years ago

Carried over from #16.

Draft is the new replacement for Deis Workflow. It gives us a Heroku-like development experience on our own private Kubernetes cloud.

https://draft.sh/

c-lliope commented 6 years ago
brew tap azure/draft
brew install azure/draft/draft
brew install entr the_silver_searcher
draft config set registry docker.io/assemble
ag -l | entr -r -s 'draft up && draft connect -p 55555:3000'

This will watch your filesystem for changes and re-deploy the server to Kubernetes on each change.

You'll be able to access the server at http://localhost:5555.

c-lliope commented 6 years ago

Okay. I'm self-vetoing this, because it's simply not necessary at this point.

We can accomplish the same thing by running the ruby code directly on our computer.