Closed btbonval closed 10 years ago
Little bits of code like this one will need to be changed for the django_user: https://github.com/FinalsClub/karmaworld/blob/d8e204a5978bd1d161f8a338ef1c3f029039731b/fabfile.py#L226
By the new assumption, env.user
would be the user with sudo privs.
Btw, env.sudo_user
is a thing. Find documentation about that.
This becomes irrelevant on Heroku. Closing.
Stemming from #334 , it'd be good to figure out which user is the Django user without programming in "I'm connecting to the staging system" or "I'm connecting to the prod system" or "I'm connecting to the VM."
I can foresee a few ways to do this.
$? == 0
)/var/www/karmaworld/
ownership (won't work on a fresh system that hasn't established the directory)There might be better ideas still, but this is top of my head.