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

Run as root

parent 0a59ff4a
......@@ -76,7 +76,7 @@ else
}
EOF
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
# Add local_settings file in the export app
......@@ -90,7 +90,7 @@ else
FASTA_DB = '/srv/rnacentral/fasta/rnacentral_species_specific_ids.fasta'
EXPORT_RESULTS_DIR = '/srv/rnacentral/export'
EOF
chown rnacentral "${RNACENTRAL_HOME}"/rnacentral/export/local_settings.py
# chown rnacentral "${RNACENTRAL_HOME}"/rnacentral/export/local_settings.py
fi
# Supervisor setup
......@@ -103,7 +103,7 @@ else
[supervisord]
pidfile=${SUPERVISOR_CONF_DIR}/supervisord.pid
logfile=${LOGS}/supervisord.log
user=rnacentral
user=root
logfile_maxbytes=50MB
logfile_backups=2
loglevel=info
......@@ -121,14 +121,14 @@ else
[program:rnacentral]
command=gunicorn --chdir $RNACENTRAL_HOME/rnacentral --bind 0.0.0.0:8000 rnacentral.wsgi:application
user=rnacentral
user=root
autostart=true
autorestart=true
stderr_logfile=${LOGS}/rnacentral.err.log
stdout_logfile=${LOGS}/rnacentral.out.log
environment=HOME="$RNACENTRAL_HOME"
EOF
chown -R rnacentral "${SUPERVISOR_CONF_DIR}"/supervisord.conf
# chown -R rnacentral "${SUPERVISOR_CONF_DIR}"/supervisord.conf
fi
# 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