💡 Explanation: Gitpod initially sets up RVM in/home/gitpod/.rvm
, but then later switches the RVM configuration directory to/workspace/.rvm
, so that any user-made changes (like installing new gems) are persisted within a Gitpod workspace. However, during the Dockerfile build, the/workspace
directory doesn’t exist yet, so we temporarily reset RVM’s configuration directory to/home/gitpod/.rvm
.
Repository | Description | Try it |
---|---|---|
Ruby on Rails template | Ruby on Rails template with a PostgreSQL database | |
Forem | The platform that powers dev.to | |
GitLab | The open source end-to-end software development platform |
bundle install
each time you restart your workspace in Gitpod, try changing your .gitpod.yml
file configuration. Instead of using init
, use a before
task, as it will be re-run each time the workspace is restarted.
Here’s an example:
bundle install
creates files in various places in the file system, they may not be retained after a restart.