我正在尝试设置我的工作区,以便 Heroku cli 在启动时自动安装。我在网上找到了路线,但没有任何效果,我仍然每次都必须手动安装它。
这就是我发现的: https ://community.gitpod.io/t/install-heroku-cli-in-githpod/627/2
.gitpod.yml file
image:
file: .gitpod.Dockerfile
.gitpod.Dockerfile
image:
file: .gitpod.Dockerfile
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: echo 'init script' # runs during prebuild
command: echo 'start script'
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 3000
onOpen: open-preview