diff options
author | Nick Thomas <nick@gitlab.com> | 2017-12-06 12:39:25 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-12-13 18:53:32 +0300 |
commit | ab4fa64308176cc069e6a731d35a53c886af805e (patch) | |
tree | 09d0c5d8a1a50abe3aa1aef418407b3379d3d2ec /doc/administration/raketasks/maintenance.md | |
parent | 8ff63039f1ee5f6e31a8b910e323977e7de3c634 (diff) |
Add a gitlab:tcp_check rake task
This allows us to avoid relying on telnet / netcat being installed
Diffstat (limited to 'doc/administration/raketasks/maintenance.md')
-rw-r--r-- | doc/administration/raketasks/maintenance.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/administration/raketasks/maintenance.md b/doc/administration/raketasks/maintenance.md index 136192191f9..ecf92c379fd 100644 --- a/doc/administration/raketasks/maintenance.md +++ b/doc/administration/raketasks/maintenance.md @@ -221,3 +221,22 @@ sudo gitlab-rake gitlab:shell:create_hooks cd /home/git/gitlab sudo -u git -H bundle exec rake gitlab:shell:create_hooks RAILS_ENV=production ``` + +## Check TCP connectivity to a remote site + +Sometimes you need to know if your GitLab installation can connect to a TCP +service on another machine - perhaps a PostgreSQL or HTTPS server. A rake task +is included to help you with this: + +**Omnibus Installation** + +``` +sudo gitlab-rake gitlab:tcp_check[example.com,80] +``` + +**Source Installation** + +``` +cd /home/git/gitlab +sudo -u git -H bundle exec rake gitlab:tcp_check[example.com,80] RAILS_ENV=production +``` |