Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Two applications created in the same sub-domain get the same access URL #53

Closed
bg6954 opened this issue Aug 23, 2013 · 2 comments
Closed

Comments

@bg6954
Copy link

bg6954 commented Aug 23, 2013

If an application is created in a particular sub-domain and when another application is created in the same sub-domain, the original application is getting updated incorrectly. Both applications end up having the same access URL.

$ cf push --command "node nodejsHelloworld.js"
Name> nodejsHelloworld001

Instances> 5

1: 128M
2: 256M
3: 512M
4: 1G
Memory Limit> 256M

Creating nodejsHelloworld001... OK

1: nodejsHelloworld001
2: none
Subdomain> nodejsHelloworld001

1: cf.att.io
2: none
Domain> cf.att.io

Creating route nodejsHelloworld001.cf.att.io... OK
Binding nodejsHelloworld001.cf.att.io to nodejsHelloworld001... OK

Create services for application?> n

Bind other services to application?> n

Save configuration?> n

Uploading nodejsHelloworld001... OK
Preparing to start nodejsHelloworld001... OK
Checking status of app 'nodejsHelloworld001'...
5 of 5 instances running (5 running)
Push successful! App 'nodejsHelloworld001' available at http://nodejsHelloworld001.cf.att.io

$ curl http://nodejsHelloworld001.cf.att.io
Hello World from my Nodejs app @173pnsaaplv

$ cf push --command "node nodejsHelloworld.js"
Name> nodejsHelloworld002

Instances> 3

1: 128M
2: 256M
3: 512M
4: 1G
Memory Limit> 256M

Creating nodejsHelloworld002... OK

1: nodejsHelloworld002
2: none
Subdomain> nodejsHelloworld001

1: cf.att.io
2: none
Domain> cf.att.io

Binding nodejsHelloworld001.cf.att.io to nodejsHelloworld001... OK

Create services for application?> n

Bind other services to application?> n

Save configuration?> n

Uploading nodejsHelloworld001... OK
Preparing to start nodejsHelloworld001... OK
Checking status of app 'nodejsHelloworld001'...
3 of 3 instances running (3 running)
Push successful! App 'nodejsHelloworld001' available at http://nodejsHelloworld001.cf.att.io

@xoebus
Copy link

xoebus commented Aug 30, 2013

What kind of behaviour would you like to see here? It appears that now you've got two apps mapped to the same subdomain just as you specified. You'll probably see 50-50 routing between nodejsHelloworld001 and nodejsHelloworld002.

@bg6954
Copy link
Author

bg6954 commented Sep 4, 2013

Looks like route gets set as sub-domain.domain. The confusion was going with the defaults for the sub-domain which was pre-populated with the application name. A wrong assumption was made that route was set to application-name.domain. Thanks!

@bg6954 bg6954 closed this as completed Sep 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants