.gitpod.yml
file.gitpod.yml
, located at the root of your repository. The gitpod.yml
file defines (for example):
yarn
project with a webserver, exposed on port 3000. On start, an in-editor preview of the webserver is opened automatically.
gitpod.yml
you can also specify a workspace image for:
.gitpod.yml
manually, or by using the gp init
command (or gp init -i
for interactive mode). The gp
CLI tool is part of the Gitpod CLI, which is included in all Gitpod workspaces by default.
.gitpod.yml
, without leaving your workspace or committing your changes by using the gp validate
command. This command opens a workspace (that runs from within your current workspace) which includes your configuration changes. Thus, allowing you to troubleshoot workspace configuration (ports, tasks, etc.) and more.
You can use the gp validate
command to test various configuration setups: simple workspace starts (without Prebuilds enabled), workspace starts using a Prebuild, or for debugging Prebuilds themselves. See below for the differences:
Command | Steps ran |
---|---|
gp validate | before + init + command |
gp validate --prebuild | before + init |
gp validate
to emit a Workspace URL.gp validate
(if needed).gp validate --prebuild
to validate how a prebuild process would look upon completion (this runs before
and init
tasks, but not command
tasks).
gp validate --prebuild
- This command will emit a Workspace URL.gp validate
if needed.Important: This command runs the workspace as a Prebuild not from a prebuild. Meaning this produces the same environment that is created by a Prebuild process, before a workspace is subsequently started using it.
gitpod.yml
(and .gitpod.Dockerfile
if you created one) to the root of your repository.
Open the commit in a new workspace by either:
https://gitpod.io/#
.gitpod.yml
to the root of the repository and start a new workspace for changes to apply (a workspace restart is not sufficient).adb
server. Some guides:
adb
server from a local Android emulator (e.g. from JetBrains Android Studio)adb
server inside a Gitpod workspace. For instructions, see:
You might also want to use Gitpod with JetBrains IDE locally:
For Flutter Android development, there is a template available: gitpod-samples/template-flutter