Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [flux-dev] Flux Deployment - Customize

Hi Kris,
Thanks for the reply. I got it connecting to rabbit-mq server by modifying rabbit-url.js to return the below connection url instead of localhost. I know its kind of hard-coding, but for now i just want to see it working.

rabbit-url.js:
 //return "amqp://localhost";
                return "amqp://username:password@68.66.59.67”; //My rabbitMQ server is deployed on EC2


Also by setting process.env.VCAP_APP_HOST to my IP, i was also able to access it from another PC. But i could not make it work when i deployed it a EC2 machine. So working on that currently.




On 29 May 2015, at 2:09 am, Kris De Volder <kdevolder@xxxxxxxxxx> wrote:

Sorry my previous answer is incomplete. Here's another place you need to implement the same logic
for the Java client as well:

https://github.com/eclipse/flux/blob/master/org.eclipse.flux.client.java/src/main/java/org/eclipse/flux/client/config/RabbitMQFluxConfig.java#L81

On Thu, May 28, 2015 at 9:00 AM, Kris De Volder <kdevolder@xxxxxxxxxx> wrote:
From what you are syaing you probably found this already...
https://github.com/eclipse/flux/blob/master/node.server/rabbit-url.js

But, to do what you want, you probably need to edit that code and
add someway for you to set the rabbiturl.

Either that, or you fake it, and set the VCAP environment variables
in the way that this piece of code expects.

Both will probably work.

Kris

On Thu, May 21, 2015 at 10:10 PM, Swapnesh Sharma <swapnesh1185@xxxxxxxxx> wrote:
Hello Everyone,
i am trying to deploy each part of flux in a separate machine starting with Messaging/RabbitMQ running separately and everything else on local.

I cannot find how to overwrite rabbitmq url in node.js. Can anyone tell if there is a easy way to do this?
I could only find it connecting to localhost or cloud foundry environment(process.env.VCAP_SERVICES). i am trying to deploy each part in a separate machine starting with Messaging/RabbitMQ running separately and everything else on local.


Regards,
Swapnesh
_______________________________________________
flux-dev mailing list
flux-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/flux-dev


_______________________________________________
flux-dev mailing list
flux-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/flux-dev


Back to the top