Commit 93b0f362 authored by Gil's avatar Gil

Added to cheatsheet commands to update the runners registration token

Update gitlab_rails_cheat_sheet.md
parent 16ac36f0
...@@ -909,6 +909,14 @@ end ...@@ -909,6 +909,14 @@ end
Gitlab::CurrentSettings.current_application_settings.runners_registration_token Gitlab::CurrentSettings.current_application_settings.runners_registration_token
``` ```
### Seed runners registration token
```ruby
appSetting = Gitlab::CurrentSettings.current_application_settings
appSetting.set_runners_registration_token('<new-runners-registration-token>')
appSetting.save!
```
### Run pipeline schedules manually ### Run pipeline schedules manually
You can run pipeline schedules manually through the Rails console to reveal any errors that are usually not visible. You can run pipeline schedules manually through the Rails console to reveal any errors that are usually not visible.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment