We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The app.config object, when accessed in the application main.js script, does not contain the configuration options from the app .cfg file.
app.config
main.js
It works when the same is done from a JavaScript controller.
To reproduce it, create a main.js in the application with this code:
log.info('App:\r\n' + JSON.stringify(app, null, 4));
Create a configuration file for the app: $XP_HOME/config/com.enonic.myappname.cfg
param1=value1 param2=value2
Build and deploy. The config is printed out in the log but without the configuration properties.
{ "name": "com.enonic.myappname", "version": "6.15.3", "config": {} }
Reported in Discuss: https://discuss.enonic.com/t/app-config-not-loaded-upon-executing-main-es6/1668/4
The text was updated successfully, but these errors were encountered:
Application config is not available in main.js (#6608)
06edb16
4998960
Merge pull request #6686 from enonic/issue-6608
2697576
Merge pull request #6688 from enonic/issue-6608-6-15
1e23b46
aro
No branches or pull requests
The
app.config
object, when accessed in the applicationmain.js
script, does not contain the configuration options from the app .cfg file.It works when the same is done from a JavaScript controller.
To reproduce it, create a main.js in the application with this code:
Create a configuration file for the app: $XP_HOME/config/com.enonic.myappname.cfg
Build and deploy.
The config is printed out in the log but without the configuration properties.
Reported in Discuss: https://discuss.enonic.com/t/app-config-not-loaded-upon-executing-main-es6/1668/4
The text was updated successfully, but these errors were encountered: