Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e0108e5d
Commit
e0108e5d
authored
Jan 24, 2020
by
Will Chandler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use full path for psql cmds and remove comments
parent
97d15019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/administration/gitaly/praefect.md
doc/administration/gitaly/praefect.md
+4
-4
No files found.
doc/administration/gitaly/praefect.md
View file @
e0108e5d
...
...
@@ -91,7 +91,7 @@ Below we assume that you have administrative access as the `postgres`
user. First open a
`psql`
session as the
`postgres`
user:
```
shell
psql
-h
POSTGRESQL_SERVER
-U
postgres
-d
template1
/opt/gitlab/embedded/bin/
psql
-h
POSTGRESQL_SERVER
-U
postgres
-d
template1
```
Once you are connected, run the following command. Replace
...
...
@@ -100,21 +100,21 @@ generated for the `praefect` SQL user:
```
sql
CREATE
ROLE
praefect
WITH
LOGIN
CREATEDB
PASSWORD
'PRAEFECT_SQL_PASSWORD'
;
\
q
#
exit
psql
\
q
```
Now connect as the
`praefect`
user to create the database. This has
the side effect of verifying that you have access:
```
shell
psql
-h
POSTGRESQL_SERVER
-U
praefect
-d
template1
/opt/gitlab/embedded/bin/
psql
-h
POSTGRESQL_SERVER
-U
praefect
-d
template1
```
Once you have connected as the
`praefect`
user, run:
```
sql
CREATE
DATABASE
praefect_production
WITH
ENCODING
=
UTF8
;
\
q
#
quit
psql
\
q
```
#### Praefect
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment