Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
4529ff6e
Commit
4529ff6e
authored
Nov 16, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database host and port are generated parameters
parent
a627b4af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gargantext.template.ini
tools/conf/gargantext.template.ini
+2
-2
mkconf.sh
tools/mkconf.sh
+4
-0
No files found.
tools/conf/gargantext.template.ini
View file @
4529ff6e
...
...
@@ -5,8 +5,8 @@ DEBUG = {DEBUG}
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
{SECRET_KEY}
# PostgreSQL access
DB_HOST
=
127.0.0.1
DB_PORT
=
5432
DB_HOST
=
{DB_HOST}
DB_PORT
=
{DB_PORT}
DB_NAME
=
{DB_NAME}
DB_USER
=
{DB_USER}
DB_PASS
=
{DB_PASS}
...
...
tools/mkconf.sh
View file @
4529ff6e
...
...
@@ -45,6 +45,8 @@ echo "PostgreSQL configuration..."
DB_NAME_DEFAULT
=
gargandb
DB_USER_DEFAULT
=
gargantua
DB_HOST
=
127.0.0.1
DB_PORT
=
5432
while
:
;
do
read
-p
"Database name [
$DB_NAME_DEFAULT
]: "
DB_NAME
...
...
@@ -79,6 +81,8 @@ DB_PASS=$(escape_ini "$DB_PASS")
echo
"Generate configuration file from
$TEMPLATE
..."
sed
-E
-e
"s/[{]DEBUG[}]/
$DEBUG
/g"
\
-e
"s/[{]SECRET_KEY[}]/
$SECRET_KEY
/g"
\
-e
"s/[{]DB_HOST[}]/
$DB_HOST
/g"
\
-e
"s/[{]DB_PORT[}]/
$DB_PORT
/g"
\
-e
"s/[{]DB_NAME[}]/
$DB_NAME
/g"
\
-e
"s/[{]DB_USER[}]/
$DB_USER
/g"
\
-e
"s/[{]DB_PASS[}]/
$DB_PASS
/g"
\
...
...
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