These are chat archives for FreeMusicNinja/api.freemusic.ninja

17th
Oct 2014
Micah Denbraver
@macro1
Oct 17 2014 00:02 UTC
did you have preferences on the resolution for FreeMusicNinja/api.freemusic.ninja#4 ?
it's just weird to back out of once it's in place
Trey Hunner
@treyhunner
Oct 17 2014 00:03 UTC
If you send me an SSH key I can give you access to the server so you can poke around
Micah Denbraver
@macro1
Oct 17 2014 00:04 UTC
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4bdMAT1vsnKt0XF39HWAXoHmqS/7dufavqaz3G007WPe4lROjYP9xhvm7qF2EpZ81tAxMy+r/lL0ZK6bvAk4g4r6KI8d/xXMS6A8oUA72JWIBFoK2yzF5CGIg9dbTfyyQYlWEf84tLaCyNehEfQ29qLoL091Pb4HJNPKeIDLezFC+Lf/lVWjhbqmzqtcQW7dV7XblzQ8KEpyEJ3EVRfs0LPzi0fzhhxQkqUHXvkJ5A0nCVsMCHQGQPYAeO2ed3o0nGAaC5W5SkPH9ETmkQVl+T5YOrZBE2PAvLNwXYrKKcmkBIG+fxmI9hYBjQbXhnakPQewEsH6h6WZ9vtL6nn71 macromicah@gmail.com
Trey Hunner
@treyhunner
Oct 17 2014 00:05 UTC
k you should be able to ssh to root@api.freemusic.ninja now
Micah Denbraver
@macro1
Oct 17 2014 00:06 UTC
i'm in
Trey Hunner
@treyhunner
Oct 17 2014 00:11 UTC
so there's /etc/init/gunicornconf
*gunicorn.conf
and /etc/gunicorn.d/gunicorn.py
and the files are under /home/django
I suck at deployment setup stuff so I haven't configured much
the git repo and setup will need to change once we switch the server to api.freemusic.ninja repo
since I split the two
FYI this is a public chat
Micah Denbraver
@macro1
Oct 17 2014 00:14 UTC
ah
so now the public can invite me to control all their servers
Trey Hunner
@treyhunner
Oct 17 2014 00:14 UTC
pretty much
you could delete it it looks like
not that it matters
Micah Denbraver
@macro1
Oct 17 2014 00:14 UTC
i guess it's my email
Trey Hunner
@treyhunner
Oct 17 2014 00:15 UTC
I don't care if they know I'm using the default digitalocean droplet setup right now either
Micah Denbraver
@macro1
Oct 17 2014 00:15 UTC
heh
so if we changed environment to be a json somewhere, it'd be basically the same
but we could have django load it directly
or gunicorn config *.py file
Trey Hunner
@treyhunner
Oct 17 2014 00:18 UTC
sure
Micah Denbraver
@macro1
Oct 17 2014 00:22 UTC
honestly i think the way you have it is basically fine... django should continue to pull unknowns in through environment variables, it's the simplest interface
what we can do is move the environment setting from the conf into the py file
and set raw_env from the source file
whether you should change formats depends more on whether you'll need those values elsewhere... but the python can just iterate and keep them in that format
but i think it can be closed as an issue for the application, it would be an issue for the config repo if/when you have one
Trey Hunner
@treyhunner
Oct 17 2014 00:25 UTC
config repo?
Micah Denbraver
@macro1
Oct 17 2014 00:25 UTC
it would keep all the sensitive stuff, only the trusted few would see it
your ops repo effectively
Trey Hunner
@treyhunner
Oct 17 2014 00:26 UTC
I was just going to keep that on the server
do you usually put that in a repo?
Micah Denbraver
@macro1
Oct 17 2014 00:26 UTC
it's common practice
either way works
Trey Hunner
@treyhunner
Oct 17 2014 00:26 UTC
also I have no deployment process
Micah Denbraver
@macro1
Oct 17 2014 00:26 UTC
i figured
that's why i think this is fine
Trey Hunner
@treyhunner
Oct 17 2014 00:26 UTC
meaning no script that takes a machine and makes it do the right stuff
Micah Denbraver
@macro1
Oct 17 2014 00:26 UTC
it's tightly coupled with how you deploy
if you really hate putting those lines in the conf i can write a line that reads the environment into the setting in the *.py config file
Trey Hunner
@treyhunner
Oct 17 2014 00:27 UTC
eh I don't care much... I don't intend to touch the Python stuff for a while
nor very often since you're taking it over :smile:
Micah Denbraver
@macro1
Oct 17 2014 00:37 UTC
sigh
not very bright of me
i do this all day for work already
i need to diversify
Trey Hunner
@treyhunner
Oct 17 2014 00:38 UTC
heh yeah
Micah Denbraver
@macro1
Oct 17 2014 00:38 UTC
ready for things to break?
Trey Hunner
@treyhunner
Oct 17 2014 00:38 UTC
sure
Micah Denbraver
@macro1
Oct 17 2014 00:41 UTC
well
it's broke now
Trey Hunner
@treyhunner
Oct 17 2014 00:42 UTC
cool
Micah Denbraver
@macro1
Oct 17 2014 00:43 UTC
i put the settings back and it's still not starting
Trey Hunner
@treyhunner
Oct 17 2014 00:43 UTC
hm
what'd you do to break it?
Micah Denbraver
@macro1
Oct 17 2014 00:43 UTC
restart gunicorn
after changing settings
but allegedly they're changed back
Trey Hunner
@treyhunner
Oct 17 2014 00:48 UTC
not sure how the API should work for this FreeMusicNinja/api.freemusic.ninja#9
not sure how to debug that 502
Micah Denbraver
@macro1
Oct 17 2014 00:53 UTC
i manually started the application and it started fine
so i'm a little lost
Trey Hunner
@treyhunner
Oct 17 2014 00:53 UTC
I'm gusesing nginx isn't forwarding to gunicorn
Micah Denbraver
@macro1
Oct 17 2014 00:53 UTC
no, gunicorn isn't running
dispite what the script says
oh
Trey Hunner
@treyhunner
Oct 17 2014 00:54 UTC
I think it's the keyfile and certfile thing
I was in the middle of trying to figure out how to get the SSL cert setup
and never finished
Micah Denbraver
@macro1
Oct 17 2014 01:02 UTC
\o/
it lives
Trey Hunner
@treyhunner
Oct 17 2014 01:10 UTC
loading state deployed
Micah Denbraver
@macro1
Oct 17 2014 01:43 UTC
something like 'someone' think 'band2' is similar to 'band1'
Micah Denbraver
@macro1
Oct 17 2014 02:06 UTC
ah, i see the models exist already
i can probably get a nested viewset to work, but it'd be easier to have it as a seperate endpoint all together
Alain Domissy
@alaindomissy
Oct 17 2014 15:17 UTC
Good Morning