truss push
every time you update your Truss during development. Instead, you can have a live reload workflow where local changes automatically are pushed to the production environment to give you a lightning-fast feedback loop.
Watch for changes
Run the
truss watch
command in a new terminal tab in the same working directory, as you’ll need to leave it running while you work.my-first-truss
working directory, run:
Use truss watch
while working
In the next three steps, we’ll deploy a basic ML model to our model server. Check your truss watch
tab and model logs on Baseten after each step to see the changes you make locally reflected live on your model server.
Leave truss watch
running in this new terminal tab for the rest of the tutorial. You can use Control-C
to exit truss watch
and stop automatically pushing changes.