Skip to content

Commit 8eceee4

Browse files
authored
set app user home dir environment variable
by default supervisord only switches user, but keeps environment untouched. this results in $HOME var pointing to /root where app user has no access. this break some apps, notably pip install.
1 parent 65525be commit 8eceee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ nodaemon = true
44
[program:wsgi]
55
user = app
66
command = /home/app/start-gunicorn.sh
7-
environment=PATH="/srv/virtenv/bin:%(ENV_PATH)s"
7+
environment=PATH="/srv/virtenv/bin:%(ENV_PATH)s",HOME="/home/app"
88
autorestart = false
99
startretries=0
1010
stdout_events_enabled = true

0 commit comments

Comments
 (0)