for production, what's a good place to put the code directory? under /home?
niki has quit
Left_Turn joined the channel
raj
are there additional costs (besides increased RAM, etc, on the server) to using VOIP on my webpage?
logos234
mun: home is for user home directories, not very good option (you may have many developers logging to production server and accessing the code) - ours lies in /urs/local/share/
roshanavand has quit
usr *
tudmotu joined the channel
unknwn- has quit
mun
logos234: is /usr/local/share root only?
logos234
mun: its root owned, you can see that youself doing a simple ls
heedly
raj: how would you use VOIP on your webpage?
skylite_ joined the channel
mun
logos234: so do your dev accounts have root access?
raj
heedly, make phone calls
akin to google hangouts, I suppose
basically call landlines
or mobile phones
heedly
I guess it would depend on the client you use.
but there are better technologies than VOIP for web stuff.
logos234
mun: yeah but only some of us, and its necessary for monitoring and maitenance purposes
raj
heedly, what do you mean?
knbk joined the channel
mun
logos234: right
heedly
raj: HTML5 has i belive mcrophone support as input.
or flash
or maybe webrtc
I'm really jusst throwing ideas at you.
raj
heedly, yes, that's fine
skylite has quit
heedly
I don't know what is out there.
raj
but what about actually connecting to phone
s
Guddu has quit
enkrypt has quit
logos234 has quit
mun
is it a good idea to deploy in a virtualenv even in production?
FunkyBob
yes
always
virtualenv protects you from others changing module versions
mun
FunkyBob: right. where do you put your code on production servers usually?
is having a separate app user and putting it under /home/app a good idea?
Sartsj joined the channel
FunkyBob
I tend to run multiple sites per server... but keep it all organised
so /srv/www/{project}/
unbit joined the channel
and in there html/ for static and media, env/ for the virtualenv... code/ for, well, the code
logs/ ... and so on
JvW1954 has quit
mun
FunkyBob: right. so you have one account for all sites?
FunkyBob
ideally one user per site
heedly
raj: you'd need some backend software like asterisk
or a 3rd party VOIP provider
mun
FunkyBob: right.
heedly
but the VOIP client would most likely best be run on the server.
vranac joined the channel
Technodrome has quit
mun
FunkyBob: does that mean all your app users are sudoers?
FunkyBob
no
enkrypt joined the channel
why would I let anyone sudo?
michalmo has quit
roshanavand joined the channel
unbit has quit
no, seriously, mun ... why?
mun
FunkyBob: but to write into /srv/www wouldn't you need sudo?
FunkyBob
I set up their project dirs, owned by them...
mun
oh right
ionelmc joined the channel
FunkyBob
actually, in most cases the clients never ssh into the server at all
grumpi joined the channel
unbit joined the channel
mun
FunkyBob: in my case, it's just me and one other dev for now
i just wonder how to set it all up for production
i guess putting it all under /srv/www makes things neater
FunkyBob
sure does
makes it safer, too
avoids, for instance, default config of web server serving up all you code, logs, etc
mkoistinen joined the channel
geisst-london joined the channel
darkspe has quit
Wu joined the channel
mkoistinen has quit
PaulN joined the channel
zkanda joined the channel
unbit has quit
sonthonax has quit
raj
heedly, yes, I was looking into asterisk, but how do I get html5 to stream the voice to asterisk, and vice versa
FunkyBob
raj: also look at FreeSWITCH
q8coder joined the channel
murk
how come date_format(timezone.now(), 'DATETIME_FORMAT') in a tag ignores the value i set for DATETIME_FORMAT in settings.py?
i'm using "unique_together = ('email', 'is_active')"? now
vranac joined the channel
flebel has quit
flebel joined the channel
opnchaudhary_ has left the channel
moerin has quit
pax-
Katharsis: it want unique=True on the email field
Katharsis
i know.
pax-
if that dsnt make sence for your use-case, and you really want unique_together = ('email, 'is_active'), then ignore the warning
sonthonax has quit
RagnarDanneskjol has quit
bkuberek joined the channel
Technodrome has quit
kuter has quit
underthehill joined the channel
sonthonax joined the channel
kunalg has quit
Lobstaman3 joined the channel
mun
FunkyBob: hi again
FunkyBob: since you put your code under /srv/www do you run gunicorn or whichever with sudo?
doismellburning
FunkyBob: you put your code in /srv? :(
mun
doismellburning: where do you put yours?
doismellburning
mun: /opt/$orgname/$appname
mun
doismellburning: right. would you also need to run with sudo?
i'm just not sure where to put mine
doismellburning
mun: no
mun: you probably don't need/want to run your code as root
AndyRez joined the channel
mun
doismellburning: but isn't root needed to write to /opt?
kuter joined the channel
doismellburning
mun: normally, sure
mun: root's needed to write to /bin too, but doesn't mean you need to be root to run /bin/ls
mun: I install as root (normally with a package manager - `sudo apt-get install myapp`; sometimes just `sudo tar zxvf myapp.tgz /opt/foo/myapp/`) but definitely don't _run_ as root