Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mediatek
Base de données Mediatek
Commits
90b135f9
Verified
Commit
90b135f9
authored
Aug 02, 2019
by
erdnaxe
🦋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add uwsgi start script
parent
366b88ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
start_uwsgi.sh
start_uwsgi.sh
+19
-0
No files found.
start_uwsgi.sh
0 → 100644
View file @
90b135f9
#!/bin/bash
# This will launch the Django project as a UWSGI socket
# then Apache or NGINX will be able to use that socket
PROJECT_PATH
=
"
$(
pwd
)
"
# Official Django configuration
uwsgi_python3
--chdir
=
$PROJECT_PATH
\
--module
=
med.wsgi:application
\
--env
DJANGO_SETTINGS_MODULE
=
med.settings
\
--master
--pidfile
=
$PROJECT_PATH
/uwsgi.pid
\
--socket
=
$PROJECT_PATH
/uwsgi.sock
\
--processes
=
5
\
--chmod-socket
=
600
\
--harakiri
=
20
\
--max-requests
=
5000
\
--vacuum
\
--daemonize
=
$PROJECT_PATH
/uwsgi.log
\
--protocol
=
fastcgi
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