SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 043d044a authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Update settings for new staging area

parent 4e64af28
No related branches found
No related tags found
No related merge requests found
# Used on staging server with IP https://scipoststg.webfactional.com
from .base import *
# THE MAIN THING HERE
DEBUG = True
ALLOWED_HOSTS = ['scipoststg.webfactional.com']
# Static and media
STATIC_ROOT = '/home/scipoststg/webapps/scipost_static/'
MEDIA_ROOT = '/home/scipoststg/webapps/scipost_media/'
# Webpack
WEBPACK_LOADER['DEFAULT']['CACHE'] = True
WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/scipoststg/webapps/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/jdewit/webapps/scipost/logs/arxiv.log'
LOGGING['handlers']['scipost_file_doi']['filename'] = '/home/jdewit/webapps/scipost/logs/doi.log'
# Used on staging server with IP http://146.185.181.185/
# A Digital Ocean setup
from .base import *
# THE MAIN THING HERE
DEBUG = True
ALLOWED_HOSTS = ['146.185.181.185']
# Static and media
STATIC_ROOT = '/home/django/scipost_v1/static/'
MEDIA_ROOT = '/home/django/scipost_v1/media/'
WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/django/scipost_v1/static/bundles/'
JOURNALS_DIR = 'journals_dir'
...@@ -6,6 +6,6 @@ import os ...@@ -6,6 +6,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SciPost_v1.settings.staging_release") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SciPost_v1.settings.staging")
application = get_wsgi_application() application = get_wsgi_application()
# #!/bin/bash #!/bin/bash
#
# # Long period (days) cronjobs for staging area # Daily cronjobs for staging area
#
# cd /home/scipost/webapps/scipost/scipost_v1 cd /home/scipoststg/webapps/scipost/scipost_v1
# source venv/bin/activate source venv/bin/activate
#
# ./manage.py remind_fellows_to_submit_report python manage.py remind_fellows_to_submit_report
# #!/bin/bash #!/bin/bash
#
# # Short period (minutes) cronjobs for staging area # Per minute cronjobs for staging area
#
# cd /home/scipost/webapps/scipost/scipost_v1 cd /home/scipoststg/webapps/scipost/scipost_v1
# source venv/bin/activate source venv/bin/activate
#
# # Mails waiting in the database
# # Mails waiting in the database python manage.py send_mails
# ./manage.py send_mails
# #!/bin/bash #!/bin/bash
#
# # Long period (days) cronjobs for staging area # Weekly cronjobs for staging area
#
# cd /home/scipost/webapps/scipost/scipost_v1 cd /home/scipoststg/webapps/scipost/scipost_v1
# source venv/bin/activate source venv/bin/activate
#
# ./manage.py remind_fellows_to_submit_report python manage.py email_fellows_tasklist
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment