Skip to content

Commit

Permalink
Changed the network information for readify. Uses TCP sockets now and…
Browse files Browse the repository at this point in the history
… routes to two host names: api.app and web.app
  • Loading branch information
James Dennis committed Apr 4, 2012
1 parent a4c5c41 commit cc2d98f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api_server.py
Expand Up @@ -23,7 +23,7 @@

# Application config
config = {
'mongrel2_pair': ('ipc://api_send', 'ipc://api_recv'),
'mongrel2_pair': ('tcp://127.0.0.1:9999', 'tcp://127.0.0.1:9998'),
'handler_tuples': handler_tuples,
'db_conn': db_conn,
'cookie_secret': 'OMGSOOOOOSECRET',
Expand Down
6 changes: 3 additions & 3 deletions mongrel2.conf
Expand Up @@ -9,7 +9,7 @@ api_handler = Handler(
recv_ident='')

api_host = Host(
name="api.readify.brubeck.io",
name="api.app",
routes={
'/': api_handler
})
Expand All @@ -31,7 +31,7 @@ static_dir = Dir(
default_ctype='text/plain')

web_host = Host(
name="readify.brubeck.io",
name="web.app",
routes={
'/static/': static_dir,
'/': web_handler
Expand All @@ -47,7 +47,7 @@ readify_serv = Server(
access_log="/log/m2.access.log",
error_log="/log/m2.error.log",
chroot="./",
default_host="readify.brubeck.io",
default_host="web.app",
name="readify_serv",
pid_file="/run/mongrel2.pid",
port=6767,
Expand Down
2 changes: 1 addition & 1 deletion web_server.py
Expand Up @@ -43,7 +43,7 @@

# Application config
config = {
'mongrel2_pair': ('ipc://web_send', 'ipc://web_recv'),
'mongrel2_pair': ('tcp://127.0.0.1:9997', 'tcp://127.0.0.1:9996'),
'handler_tuples': handler_tuples,
'template_loader': load_jinja2_env('./templates'),
'db_conn': db_conn,
Expand Down

2 comments on commit cc2d98f

@robbyt
Copy link

@robbyt robbyt commented on cc2d98f Apr 6, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you decide to use tcp instead of ipc for this?

@j2labs
Copy link
Owner

@j2labs j2labs commented on cc2d98f Apr 7, 2012 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.