fix gunicorn issue with group www-data
This commit is contained in:
@@ -21,7 +21,7 @@ if [ ! -d $logdir ] ; then
|
||||
fi
|
||||
|
||||
# install dependencies
|
||||
packages=(gcc wget nginx ufw make sqlite3 bzip2 libffi-dev libssl-dev libsqlite3-dev libbz2-dev)
|
||||
packages=(gcc wget nginx ufw make sqlite3 bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev)
|
||||
for package in ${packages[@]};
|
||||
do
|
||||
echo -e "\tInstalling $package"
|
||||
@@ -234,7 +234,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
User=$user
|
||||
Group=nginx
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/$user/$projectname
|
||||
ExecStart=/home/$user/$projectname/venv/bin/gunicorn --workers 3 --bind unix:/home/$user/$projectname/$projectname.sock config.wsgi:application
|
||||
Environment=HOST=$hostname
|
||||
|
||||
Reference in New Issue
Block a user