Difference between revisions of "Talk:Gitlab"

From ArchWiki
Jump to: navigation, search
(backup and restore: reply)
Line 1: Line 1:
 
== backup and restore ==
 
== backup and restore ==
 
Very new to gitlab, but it seems that the backup and restore commands here are not entirely in sync with how the GitLab documentation says it should be done. Can anyone with more experience tell me why not to follow the GitLab docs: [https://github.com/gitlabhq/gitlabhq/blob/master/doc/raketasks/backup_restore.md]
 
Very new to gitlab, but it seems that the backup and restore commands here are not entirely in sync with how the GitLab documentation says it should be done. Can anyone with more experience tell me why not to follow the GitLab docs: [https://github.com/gitlabhq/gitlabhq/blob/master/doc/raketasks/backup_restore.md]
 +
: That's because this article is updated up to section 7. Most of the other sections are deprecated. Feel free to edit it. And please next time sign your posts, thanks. --[[User:Maevius|Maevius]] ([[User talk:Maevius|talk]]) 15:29, 12 June 2013 (UTC)
  
 
== unicorn replaced by puma ==
 
== unicorn replaced by puma ==

Revision as of 15:29, 12 June 2013

backup and restore

Very new to gitlab, but it seems that the backup and restore commands here are not entirely in sync with how the GitLab documentation says it should be done. Can anyone with more experience tell me why not to follow the GitLab docs: [1]

That's because this article is updated up to section 7. Most of the other sections are deprecated. Feel free to edit it. And please next time sign your posts, thanks. --Maevius (talk) 15:29, 12 June 2013 (UTC)

unicorn replaced by puma

I noticed today that for 5.2 puma replaced unicorn. On the same matter, I had to update my systemd file since puma is forking and not simple. Should I edit the Wiki for the new version? Also it seems not everything is up2date yet in this article. Can I help somewhere? Javex (talk) 20:53, 22 May 2013 (UTC)

Actually unicorn is replaced by puma since 5.1. I haven't edited the whole article yet, I reached till the web server configuration. If you think you can help then by all means do it! Can you share your systemd files as well? Here is what I got so far, but sidekiq is timing out. They are probably missing the Requires and After attributes since redis must be running for sidekiq to work.
gitlab-puma.service

[Unit]
Description=GitLab Puma Server

[Service]
User=git
WorkingDirectory=/home/git/gitlab
Environment=RAILS_ENV=production
ExecStart=/usr/bin/bundle exec "puma -C /home/git/gitlab/config/puma.rb -e production"
SyslogIdentifier=gitlab-puma
Type=forking
PIDFile=/home/git/gitlab/tmp/pids/puma.pid

[Install]
WantedBy=gitlab.target

gitlab-sidekiq.service
[Unit]
Description=GitLab Sidekiq Server

[Service]
User=git
WorkingDirectory=/home/git/gitlab
Environment=RAILS_ENV=production
ExecStart=/usr/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P /home/git/gitlab/tmp/pids/sidekiq.pid"
SyslogIdentifier=gitlab-sidekiq
Type=forking
PIDFile=/home/git/gitlab/tmp/pids/sidekiq.pid

[Install]
WantedBy=gitlab.target

--Maevius (talk) 06:17, 23 May 2013 (UTC)

I have done some work on the article to update it for 5.2. This is mostly how I currently use it (I have also added an rvm section that reflects my current environment). I would be happy if someone could review it to make sure it contains no errors and works this way. It is still not finished. For example, I noticed a hint during the unicorn section to restart the systemd services which are not yet present at this time during the configuration. Since unicorn got replaced anyway it may be a good idea to remove or reword that section. I found that I did not need to edit anything for puma so maybe it is a good idea to drop this completely? Also I did not yet include any "requires" yet and my sidekiq unit looks different because I use the original commands (I don't understand yours. If it is more suited, maybe you could explain it?). Javex (talk) 21:13, 23 May 2013 (UTC)
That looks good :) The web server section needs a complete rewrite. I didn't know mtorromeo had PKGBUILDs for GitLab! I'll check them for sure. --Maevius (talk) 14:44, 24 May 2013 (UTC)