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
06dfaf2f
Commit
06dfaf2f
authored
Mar 29, 2018
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically handle scrapyd configuration file
parent
1b34fc89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
.gitignore
.gitignore
+1
-0
scrapy.cfg
scrapy.cfg
+0
-1
mkconf.sh
tools/mkconf.sh
+13
-0
mkenvs.sh
tools/mkenvs.sh
+2
-0
No files found.
.gitignore
View file @
06dfaf2f
...
...
@@ -6,3 +6,4 @@ gargantext.ini
postgrest.conf
*.log
scrapyd
scrapy.cfg
scrapy.cfg
deleted
120000 → 0
View file @
1b34fc89
gargantext.ini
\ No newline at end of file
tools/mkconf.sh
View file @
06dfaf2f
...
...
@@ -54,10 +54,23 @@ VENV=$(pipenv --venv)
# PostgREST configuration file path
[
-z
"
$POSTGREST_CONF
"
]
&&
POSTGREST_CONF
=
postgrest.conf
# Scrapy & scrapyd configuration file path
SCRAPY_CONF
=
scrapy.cfg
# Configuration template paths
GARGANTEXT_TEMPLATE
=
tools/conf/gargantext.template.ini
POSTGREST_TEMPLATE
=
tools/conf/postgrest.template.conf
echo
"▸ Make symbolic link
$SCRAPY_CONF
to
$GARGANTEXT_CONF
for scrapyd..."
if
[
-e
"
$SCRAPY_CONF
"
]
;
then
if
[
-L
"
$SCRAPY_CONF
"
]
;
then
rm
-f
$SCRAPY_CONF
else
echo
"WARNING:
$SCRAPY_CONF
exists and is not a symlink, won't touch it."
fi
fi
[
-e
"
$SCRAPY_CONF
"
]
||
ln
-s
$GARGANTEXT_CONF
$SCRAPY_CONF
# Check for configuration file existence
if
[
-f
"
$GARGANTEXT_CONF
"
-a
-z
"
$FORCE
"
]
;
then
echo
-e
"Configuration file
$GARGANTEXT_CONF
already exists, you may"
\
...
...
tools/mkenvs.sh
View file @
06dfaf2f
...
...
@@ -26,6 +26,8 @@ $DJANGO_VAR
$SCRAPY_VAR
# Paths of configuration files, you're welcome to change that; when a simple
# filename is given, it'll be searched in current directory.
# IMPORTANT: if you change this don't forget to update scrapy.cfg symbolic link
# by running ./tools/mkconf.sh
GARGANTEXT_CONF=
$GARGANTEXT_CONF
POSTGREST_CONF=
$POSTGREST_CONF
EOF
...
...
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