GitHub Links
Snapshot
.gitpod.yml
:
Split Terminals
Start Mode | Execution |
---|---|
Fresh Workspace | before && init && command |
Restart Workspace | before && command |
Snapshot | before && command |
8080
to automatically open in a web preview pane:
.gitpod.yml
.
yaml in action
gp help
.
Here are the new commands we added:
.gitpod.yml
file sitting in your repository.
The gp init
command walks you through the basic setup and generates a .gitpod.yml
and if desired a corresponding Dockerfile
.
.gitpod.yml
configurations can be found in the docs.
.gitpod.yml
is declaring the exposed ports. Gitpod maps them to a specific subdomain in order to make them accessible. For instance if you have a dev server running on 0.0.0.0:3000
the gp url
command gives you the external url for that service.
Here is an example:
gp url
can also give you the URL of the workspace itself:
gp preview
is similar to gp open
, except that it does not open a file in the editor but a URL in a preview pane on the right.
This is especially handy together with gp url
if you want to open a specific path from a script.
Here’s an example:
.gitpod.yml
you can provide a Dockerfile
which is automatically picked up by Gitpod. See this blog post for more information on setting up a Dockerfile for your project.
For example, here is a Dockerfile that allows developing native UI applications in Go on Gitpod:
main()
methods will automatically use the right classpath from the current project settings (based on maven, gradle or eclipse classpath information).
Launch configs are stored in a VS Code compatible launch.json
file.
Debug Java
XML Support