Change cuba.webAppUr from default value `http://localhost:8080/app` to http://localhost:8080/myapplicationname

Hi Team ,

Currently , I’m trying to change my application url to another value , like the one done on the sampler application

https://demo10.cuba-platform.com/sampler/#main

I can see that the Modules names is changes from applicationname.app-core to sampler.sampler-core where sampler is the application

Also inside web.properties connection list urls is changed to redirect to the new url

localhost:8080/sampler-core

and web url to localhost:8080/sampler

and inside web-app.properties also the values changed for both the context and web url

I go through all previous steps to change the modules names to
myapplication.myapplication-[core,global,web]

change all values inside the web-app.properties and app.properties

and was expecting to have my application running with the new url ,
but it is still the same also with having run time exception that application can’t find iniit db scripts

can you please guide me How to make it work ?

Thanks

Hello @abd.ibrahim.allam

You should also change application module prefix. Open project properties in Studio and update corresponding field:

image

Regards,
Daniil

1 Like