SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
42769366
Commit
42769366
authored
6 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
New env settings
parent
143457db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SciPost_v1/settings/staging_2.py
+31
-0
31 additions, 0 deletions
SciPost_v1/settings/staging_2.py
SciPost_v1/settings/staging_release.py
+0
-25
0 additions, 25 deletions
SciPost_v1/settings/staging_release.py
with
31 additions
and
25 deletions
SciPost_v1/settings/staging_2.py
0 → 100644
+
31
−
0
View file @
42769366
# Used on staging server with IP 128.199.54.82
from
.base
import
*
# THE MAIN THING HERE
DEBUG
=
False
ALLOWED_HOSTS
=
[
'
128.199.54.82
'
]
# Static and media
STATIC_ROOT
=
'
/home/scipost_static/
'
MEDIA_ROOT
=
'
/home/scipost_media/
'
# Webpack
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
CACHE
'
]
=
True
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
BUNDLE_DIR_NAME
'
]
=
'
/home/scipost/scipost_static/bundles/
'
# ReCaptcha keys
RECAPTCHA_PUBLIC_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PUBLIC_KEY
"
)
RECAPTCHA_PRIVATE_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PRIVATE_KEY
"
)
# Logging location
LOGGING
[
'
handlers
'
][
'
scipost_file_arxiv
'
][
'
filename
'
]
=
'
/home/scipost/logs/arxiv.log
'
LOGGING
[
'
handlers
'
][
'
scipost_file_doi
'
][
'
filename
'
]
=
'
/home/scipost/logs/doi.log
'
# Cookies
SESSION_COOKIE_SECURE
=
True
CSRF_COOKIE_SECURE
=
True
# Email
EMAIL_BACKEND
=
'
mails.backends.filebased.ModelEmailBackend
'
EMAIL_BACKEND_ORIGINAL
=
'
django.core.mail.backends.dummy.EmailBackend
'
# Disable real processing
This diff is collapsed.
Click to expand it.
SciPost_v1/settings/staging_release.py
deleted
100644 → 0
+
0
−
25
View file @
143457db
from
.base
import
*
# This file is meant for the server used for the release branches
#
# THE MAIN THING HERE
DEBUG
=
False
ALLOWED_HOSTS
=
[
'
jdewit.webfactional.com
'
]
# Recaptcha
RECAPTCHA_PUBLIC_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PUBLIC_KEY
"
)
RECAPTCHA_PRIVATE_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PRIVATE_KEY
"
)
# Static and media
STATIC_URL
=
'
/static/
'
STATIC_ROOT
=
'
/home/jdewit/webapps/scipost_static/
'
MEDIA_URL
=
'
/media/
'
MEDIA_ROOT
=
'
/home/jdewit/webapps/scipost_media/
'
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
CACHE
'
]
=
True
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
BUNDLE_DIR_NAME
'
]
=
'
/home/jdewit/webapps/scipost_static/bundles/
'
# Logging
LOGGING
[
'
handlers
'
][
'
scipost_file_arxiv
'
][
'
filename
'
]
=
'
/home/jdewit/webapps/scipost/logs/arxiv.log
'
LOGGING
[
'
handlers
'
][
'
scipost_file_doi
'
][
'
filename
'
]
=
'
/home/jdewit/webapps/scipost/logs/doi.log
'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment