Log file Viewer
Help
|
Karma
| Search:
#dcpython logs for Saturday the 14th of January, 2012
(
Back to #dcpython overview
) (
Back to channel listing
) (
Animate logs
)
[
00:51:36
] <
aclark
> craigkerstiens: ping
[
00:55:19
] <
craigkerstiens
> aclark: pong
[
00:55:41
] <
aclark
> craigkerstiens: hey do i need to run my app on port 5000 for it to work on heroku?
[
00:56:00
] <
aclark
> i assume not
[
00:56:04
] <
craigkerstiens
> aclark: no you bind it to $PORT
[
00:56:08
] <
aclark
> but thought i'd ask
[
00:56:14
] <
craigkerstiens
> there's an environment variable in all dynos for PORT
[
00:56:15
] <
aclark
> what's $PORT?
[
00:56:18
] <
aclark
> aha
[
00:56:21
] <
craigkerstiens
> that the port that listens for traffic
[
00:56:43
] <
aclark
> ok
[
00:57:09
] <
craigkerstiens
> similar to this for flask: http://devcenter.heroku.com/articles/python#write_your_app
[
00:58:11
] <
aclark
> craigkerstiens: is this an assignment? port = int(os.environ.get("PORT", 5000))
[
00:58:40
] <
craigkerstiens
> yeah, it gets it from the environment or fails back to 5000 if its not set
[
00:58:49
] <
craigkerstiens
> then in the app server is sets port=port
[
00:59:01
] <
craigkerstiens
> what framework you using?
[
00:59:25
] <
aclark
> pyramid
[
00:59:33
] <
craigkerstiens
> http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment.html#heroku
[
01:00:17
] <
aclark
> yeah, missed the port stuff on first attempt i'll try again, thanks!
[
01:00:28
] <
aclark
> so basically i ask for the port then run on that port
[
01:01:11
] <
craigkerstiens
> yep, exactly
[
01:02:07
] <
aclark
> cooool
[
01:02:11
] <
aclark
> :-)
[
18:34:31
] <
xrogaan
> lo
[
18:34:45
] <
aclark
> \o/
[
18:37:35
] <
xrogaan
> what is DCPython anyway ?
[
18:38:38
] <
xrogaan
> oh, non-profit organization
[
18:38:39
] <
xrogaan
> nice
[
18:39:17
] <
aclark
> xrogaan: yeah, a group of Python enthusiasts in and around DC, backed by non-profit org
[
18:42:27
] <
xrogaan
> I'm from belgium, jaraco said that he idle here from time to time
[
18:46:39
] <
aclark
> xrogaan: cool, welcome
[
18:46:41
] <
xrogaan
> So I came, it's much easier to talk with irc than bitbucket mail box
[
18:46:52
] <
aclark
> heh