Commit a53f687f authored by Axilleas Pipinellis's avatar Axilleas Pipinellis

Added creation of pids directory to fix #2995, replaced deprecated nginx...

Added creation of pids directory to fix #2995, replaced deprecated nginx init.d command with service one, some more clean-up
parent b65e5b1e
...@@ -94,16 +94,16 @@ Create a `git` user for Gitlab: ...@@ -94,16 +94,16 @@ Create a `git` user for Gitlab:
# 4. GitLab shell # 4. GitLab shell
# login as git # Login as git
sudo su git sudo su git
# go to home directory # Go to home directory
cd /home/git cd /home/git
# clone gitlab shell # Clone gitlab shell
git clone https://github.com/gitlabhq/gitlab-shell.git git clone https://github.com/gitlabhq/gitlab-shell.git
# setup # Setup
cd gitlab-shell cd gitlab-shell
cp config.yml.example config.yml cp config.yml.example config.yml
./bin/install ./bin/install
...@@ -151,9 +151,13 @@ do so with caution! ...@@ -151,9 +151,13 @@ do so with caution!
sudo chmod -R u+rwX log/ sudo chmod -R u+rwX log/
sudo chmod -R u+rwX tmp/ sudo chmod -R u+rwX tmp/
# Make directory for satellites # Create directory for satellites
sudo -u git -H mkdir /home/git/gitlab-satellites sudo -u git -H mkdir /home/git/gitlab-satellites
# Create directory for pids and make sure GitLab can write to it
sudo -u git -H mkdir tmp/pids/
sudo chmod -R u+rwX tmp/pids/
# Copy the example Unicorn config # Copy the example Unicorn config
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb
...@@ -204,7 +208,7 @@ Make GitLab start on boot: ...@@ -204,7 +208,7 @@ Make GitLab start on boot:
## Check Application Status ## Check Application Status
Check if GitLab and its environment is configured correctly: Check if GitLab and its environment are configured correctly:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
...@@ -247,7 +251,7 @@ Make sure to edit the config file to match your setup: ...@@ -247,7 +251,7 @@ Make sure to edit the config file to match your setup:
## Restart ## Restart
sudo /etc/init.d/nginx restart sudo service nginx restart
# Done! # Done!
...@@ -281,7 +285,7 @@ a different host, you can configure its connection string via the ...@@ -281,7 +285,7 @@ a different host, you can configure its connection string via the
## Custom SSH Connection ## Custom SSH Connection
If you are running SSH on a non-standard port, you must change the gitlab user'S SSH config. If you are running SSH on a non-standard port, you must change the gitlab user's SSH config.
# Add to /home/git/.ssh/config # Add to /home/git/.ssh/config
host localhost # Give your setup a name (here: override localhost) host localhost # Give your setup a name (here: override localhost)
......
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