User Tools

Site Tools


инструмент_gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
инструмент_gitlab [2026/05/30 12:42]
val [Проверка конфигурации и перезапуск]
инструмент_gitlab [2026/06/15 09:11] (current)
val [Настройка отправки почты]
Line 168: Line 168:
 <​code>​ <​code>​
 # gitlab-rails console # gitlab-rails console
 +
 +irb(main):​001>​ ApplicationSetting.delete_all
  
 irb(main):​001>​ ActiveRecord::​Base.connection.execute("​UPDATE application_settings SET runners_registration_token_encrypted = NULL, error_tracking_access_token_encrypted = NULL, encrypted_ci_jwt_signing_key = NULL") irb(main):​001>​ ActiveRecord::​Base.connection.execute("​UPDATE application_settings SET runners_registration_token_encrypted = NULL, error_tracking_access_token_encrypted = NULL, encrypted_ci_jwt_signing_key = NULL")
  
-irb(main):​002>​ Ci::​Runner.delete_all+irb(main):​002> Project.update_all(runners_token:​ nil, runners_token_encrypted:​ nil) 
 +irb(main):​003>​ Group.update_all(runners_token:​ nil, runners_token_encrypted:​ nil) 
 + 
 +irb(main):​004>​ Ci::​RunnerProject.delete_all 
 +irb(main):​005> Ci::​Runner.delete_all 
 +irb(main):​006>​ Rails.cache.clear
 </​code>​ </​code>​
 ==== Настройка отправки почты ==== ==== Настройка отправки почты ====
Line 178: Line 185:
 <​code>​ <​code>​
 root@gitlab:/#​ gitlab-rails console root@gitlab:/#​ gitlab-rails console
-irb(main):​001>​ Notify.test_email('​student@corp15.un', '​Message Subject',​ '​Message Body'​).deliver_now+irb(main):​001>​ Notify.test_email('​student@corpX.un', '​Message Subject',​ '​Message Body'​).deliver_now
 </​code>​ </​code>​
 ==== GitLab Docker Registry ==== ==== GitLab Docker Registry ====
инструмент_gitlab.1780134152.txt.gz · Last modified: 2026/05/30 12:42 by val