Constants need to be published for mendix cloud.

0
I have published one website on mendix cloud. It has one ProjectSetting.Base_URL constant which is not getting updated for the mendix cloud published version. There, it is taking the localhost url. Please check the screenshot where I have added the constants updated value according to the published mendix cloud. Please guide me.
asked
3 answers
1

Hi Tanu,

 

In Model options in Environment details of your respective environment, you can update the constants for the Mendix cloud

 

 

Check the below link for reference
https://docs.mendix.com/developerportal/deploy/environments-details/#model-options

answered
1

Hi Tanu,

If I understand correctly, you already configured constants of this kind in the App-Explorer somewhere?
In the Edit of the Screenshot you are overwriting those constants with the values in the screenshot. As far as I know, you can change the value of constants on the Developer Portal for your application for a choosen Environment in its Detail-View in the “Model-Options” Tab.
 

answered
1

You have your constants in a local configuration, so this will only work when running locally in Studio Pro.

When you deploy to the Cloud you need to set the constants there as well. You can do this from the Model Options tab of the environment.
https://docs.mendix.com/developerportal/deploy/environments-details/#constants

By default, the environment will have the value the constant was initially set to. If you change it in your application and deploy the application again it won’t change on the Cloud. You need to specifically go into the Model Options tab again and change it there. This is so values are preserved and so that can be different across environments if necessary.

I hope this helps.

answered