Hi, everyone
I try to settup selfhost gitlab instance with GDK.It easy to setup with the guildline from document, but when i started to debug, it failed beacuse of the conflic environment. Here is the log:
/home/gdk/.local/share/mise/installs/ruby/3.3.10/lib/ruby/gems/3.3.0/gems/bundler-2.7.1/lib/bundler/runtime.rb:317:in check_for_activated_spec!': You have already activated json 2.18.1, but your Gemfile requires json 2.13.1. Prepending bundle exec` to your command may solve this. (Gem::LoadError)
I guess i should prepending ‘bundle exec’, but doesn’t know how to config it. Could you guy help me to solve this ?
I run this command on docker gdk: gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server
And then press f5 in vscode
Here is my lauch.json:
Executing task: gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server
/bin/bash: line 1: gdk: command not found
The terminal process “/bin/bash ‘-c’, ‘gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true rdbg --open -c bin/rails server’” failed to launch (exit code: 127).
Terminal will be reused by tasks, press any key to close it.
It may be easier to back and forth on there. We also host a couple of community office hours (one starts in roughly 1 hour)- the details are also available in Discord.
Lastly- if you’re not already, you may want to try GDK-in-a-box container as it’s a slightly quicker way of getting the development environment up and running: Configure GDK-in-a-box | GitLab Docs