Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
8ca3e9af
Unverified
Commit
8ca3e9af
authored
Sep 21, 2021
by
Carlos Eduardo Ribas
Committed by
GitHub
Sep 21, 2021
Browse files
Merge pull request #561 from RNAcentral/check-django-compressor
Enable django-compressor
parents
1437d145
eea58ed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
entrypoint.sh
entrypoint.sh
+4
-1
rnacentral/rnacentral/settings.py
rnacentral/rnacentral/settings.py
+9
-4
No files found.
entrypoint.sh
View file @
8ca3e9af
...
...
@@ -39,7 +39,6 @@ else
ENVIRONMENT = get_environment()
INTERNAL_IPS = ('127.0.0.1', '192.168.99.1')
DEBUG_TOOLBAR_CONFIG = {'SHOW_TOOLBAR_CALLBACK': lambda request: DEBUG}
COMPRESS_ENABLED = False
S3_SERVER = {
"HOST": "
$S3_HOST
",
"KEY": "
$S3_KEY
",
...
...
@@ -136,4 +135,8 @@ fi
echo
"INFO: Copying the static files"
python
"
${
RNACENTRAL_HOME
}
"
/rnacentral/manage.py collectstatic
--noinput
# Run django compressor
echo
"INFO: Running django compress"
python
"
${
RNACENTRAL_HOME
}
"
/rnacentral/manage.py compress
exec
"
$@
"
\ No newline at end of file
rnacentral/rnacentral/settings.py
View file @
8ca3e9af
...
...
@@ -353,10 +353,15 @@ COMPRESS_ENABLED = True
COMPRESS_OFFLINE
=
True
COMPRESS_ROOT
=
STATIC_ROOT
COMPRESS_CSS_HASHING_METHOD
=
'content'
COMPRESS_CSS_FILTERS
=
[
'compressor.filters.css_default.CssAbsoluteFilter'
,
'compressor.filters.cssmin.rCSSMinFilter'
,
]
COMPRESS_FILTERS
=
{
'css'
:
[
'compressor.filters.css_default.CssAbsoluteFilter'
,
'compressor.filters.cssmin.rCSSMinFilter'
,
],
'js'
:
[
'compressor.filters.jsmin.JSMinFilter'
,
]
}
# Use a simplified runner to prevent any modifications to the database.
...
...
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