Commit 9b6364d6 authored by carlosribas's avatar carlosribas
Browse files

Run as root

parent 0a59ff4a
...@@ -76,7 +76,7 @@ else ...@@ -76,7 +76,7 @@ else
} }
EOF EOF
sed -i "3 a DEBUG = ${DJANGO_DEBUG}" "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py sed -i "3 a DEBUG = ${DJANGO_DEBUG}" "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py
chown -R rnacentral "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py # chown -R rnacentral "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py
fi fi
# Add local_settings file in the export app # Add local_settings file in the export app
...@@ -90,7 +90,7 @@ else ...@@ -90,7 +90,7 @@ else
FASTA_DB = '/srv/rnacentral/fasta/rnacentral_species_specific_ids.fasta' FASTA_DB = '/srv/rnacentral/fasta/rnacentral_species_specific_ids.fasta'
EXPORT_RESULTS_DIR = '/srv/rnacentral/export' EXPORT_RESULTS_DIR = '/srv/rnacentral/export'
EOF EOF
chown rnacentral "${RNACENTRAL_HOME}"/rnacentral/export/local_settings.py # chown rnacentral "${RNACENTRAL_HOME}"/rnacentral/export/local_settings.py
fi fi
# Supervisor setup # Supervisor setup
...@@ -103,7 +103,7 @@ else ...@@ -103,7 +103,7 @@ else
[supervisord] [supervisord]
pidfile=${SUPERVISOR_CONF_DIR}/supervisord.pid pidfile=${SUPERVISOR_CONF_DIR}/supervisord.pid
logfile=${LOGS}/supervisord.log logfile=${LOGS}/supervisord.log
user=rnacentral user=root
logfile_maxbytes=50MB logfile_maxbytes=50MB
logfile_backups=2 logfile_backups=2
loglevel=info loglevel=info
...@@ -121,14 +121,14 @@ else ...@@ -121,14 +121,14 @@ else
[program:rnacentral] [program:rnacentral]
command=gunicorn --chdir $RNACENTRAL_HOME/rnacentral --bind 0.0.0.0:8000 rnacentral.wsgi:application command=gunicorn --chdir $RNACENTRAL_HOME/rnacentral --bind 0.0.0.0:8000 rnacentral.wsgi:application
user=rnacentral user=root
autostart=true autostart=true
autorestart=true autorestart=true
stderr_logfile=${LOGS}/rnacentral.err.log stderr_logfile=${LOGS}/rnacentral.err.log
stdout_logfile=${LOGS}/rnacentral.out.log stdout_logfile=${LOGS}/rnacentral.out.log
environment=HOME="$RNACENTRAL_HOME" environment=HOME="$RNACENTRAL_HOME"
EOF EOF
chown -R rnacentral "${SUPERVISOR_CONF_DIR}"/supervisord.conf # chown -R rnacentral "${SUPERVISOR_CONF_DIR}"/supervisord.conf
fi fi
# Run collectstatic # Run collectstatic
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment