Running your First Tilt Project¶
For this tutorial, you should have:
kubectlfor a local cluster
To double-check, run:
$ tilt version v0.5.0-dev, built 2019-01-14 $ kubectl config current-context docker-for-desktop
If the cluster is NOT ``docker-for-desktop
see the FAQ on
how to change your cluster.
This example will only work with these local clusters.
Starting One Server¶
For your first Tilt project, let’s not worry about configuring a project just
yet. Let’s look at a simple existing project and see how easy it is to
tilt up and go.
First, check out the Tilt repo.
git clone https://github.com/windmilleng/tilt cd tilt/integration/oneup
integration, Tilt has example projects that we use to run our integration tests.
We’ll be looking at the oneup project
In the oneup directory, run
Your terminal will turn into a status box that lets you watch your server come up. When it’s ready, you will see the status icon turn green. The logs in the botton pane will display “Serving oneup on container port 8000.”
oneup server logs
b to open
oneup in a browser window.
Your browser will open
You should see the text
🍄 One-Up! 🍄.
Congratulations! You’ve run your first server with
q to quit the status box. When you’re finished, run
to turn off the server.
If any of the examples in this tutorial didn’t work for you, see the Troubleshooting FAQ.