Skip to content

Commit

Permalink
Set Processes for Uwsgi.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Oct 12, 2021
1 parent 1f34b5f commit 8b4022f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,21 @@ function start_server() {

if [ $r_flag == 0 ];
then
uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi \
--static-map /static=/tmp/static/ --static-map /media=/srv/media \
--enable-threads --python-autoreload 1
uwsgi --http-socket 0.0.0.0:3031 \
--module agagd.wsgi \
--static-map /static=/tmp/static/ \
--static-map /media=/srv/media \
--enable-threads \
--python-autoreload 1 \
--processes 2
elif [ $r_flag == 1 ];
then
uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi \
--static-map /static=/tmp/static/ --static-map /media=/srv/media
uwsgi --http-socket 0.0.0.0:3031 \
--module agagd.wsgi \
--static-map /static=/tmp/static/ \
--static-map /media=/srv/media
--enable-threads \
--processes 2
fi
}

Expand Down

0 comments on commit 8b4022f

Please sign in to comment.