Hi Roman,

I do this by running a local instance of Nginx that proxies to my backend (or 
wherever you need as it’s easily changeable).

As for RPC configuration, I have mine all set relatively, as-in, simply:

AMFChannel("my-amf", "messagebroker/amf");

This way, they always look local, but proxy through Nginx to any server I need 
throughout the development/test process.

By doing it this way, I never have to modify a build. They just work in call 
cases, whether that be local for development, or remote when deployed.

If you need any config assistance for Nginx, let me know.

Regards,
Brian

From: Roman Isitua <romanisi...@gmail.com>
Sent: Monday, October 18, 2021 9:23 AM
To: users@royale.apache.org
Subject: [EXTERNAL] Configuring rpc end points in royale

Hi,

In an app, I am working on. I am using rpc based end points to access my back 
end. On my development machine I use localhost. I intend to start deploying the 
the app to a test server for testing. I realise that each time, I do a 
deployment to the test server, I have to remember to switch from local host to 
the ip address of the test server. I do this via the beans.mxml configuration 
files. (I am using crux). Sometimes I forget to do this,  so I have to redeploy 
again.

My question is, is there a better way to configure my rpc end points such that 
I don't have to be changing ip addresses of the rpc end points in the 
beans.mxml file ?

Once testing is done, the app will be moved to production, again, ip addresses 
will change.

What is the best practice for configuring rpc end points in royale ?

Is there a way to store deployment environments specific configurations  ?


Regards,

Reply via email to