fix gunicorn issue with group www-data

This commit is contained in:
ducoterra
2018-09-28 21:16:18 -04:00
parent d4cff6cbcd
commit d996b0ff94

View File

@@ -21,7 +21,7 @@ if [ ! -d $logdir ] ; then
fi fi
# install dependencies # 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[@]}; for package in ${packages[@]};
do do
echo -e "\tInstalling $package" echo -e "\tInstalling $package"
@@ -234,7 +234,7 @@ After=network.target
[Service] [Service]
User=$user User=$user
Group=nginx Group=www-data
WorkingDirectory=/home/$user/$projectname WorkingDirectory=/home/$user/$projectname
ExecStart=/home/$user/$projectname/venv/bin/gunicorn --workers 3 --bind unix:/home/$user/$projectname/$projectname.sock config.wsgi:application ExecStart=/home/$user/$projectname/venv/bin/gunicorn --workers 3 --bind unix:/home/$user/$projectname/$projectname.sock config.wsgi:application
Environment=HOST=$hostname Environment=HOST=$hostname