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
9b6364d6
Commit
9b6364d6
authored
Sep 23, 2021
by
carlosribas
Browse files
Run as root
parent
0a59ff4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
entrypoint.sh
entrypoint.sh
+5
-5
No files found.
entrypoint.sh
View file @
9b6364d6
...
...
@@ -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=r
nacentral
user=r
oot
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=r
nacentral
user=r
oot
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
...
...
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