question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace hardcoded context roots from app-cfg.js

See original GitHub issue

When deploying the Flowable UI Apps under a different context root from the default /flowable-*, it is possible to make everything work using changes in property files (e.g. flowable.common.app.idm-url is configurable), except for one party pooper: the file ./src/main/resources/static/scripts/app-cfg.js has hardcoded context root strings:

FLOWABLE.CONFIG = {
        'onPremise' : true,
        'contextRoot' : '/flowable-idm',
        'webContextRoot' : '/flowable-idm',
    'datesLocalization' : false
};

If these static strings weren’t there, then the app wars could be transparently deployed under a different context root. Currently, putting an app on a different context root requires modifying the war file.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tijsrademakerscommented, Aug 21, 2018

Thanks for the ping, this is implemented with the PR indeed.

0reactions
n0mercommented, Aug 21, 2018

@jbarrez @tijsrademakers what do you think, #1100 solved this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get rid of hard-coding the context path of web apps in external ...
What happens is that the included JavaScript file named websockets.js where the global variable contextPath is attempted to be accessed, ...
Read more >
Deploy Spring Boot and Angular application to Heroku
Preparing Angular app for Production · Maintain different URLs for Dev and Prod environments · Replace Hardcoded URL with environment variable.
Read more >
Customizing context roots for the components in a deployment ...
To customize the context roots in an existing deployment environment, complete the following steps: Stop all running servers in the deployment environment. In...
Read more >
Spring Framework Reference Documentation
You can change the root URL from /release/ to /milestone/ or /snapshot/ as appropriate. Once configured, you can add dependencies in the usual...
Read more >
pdf - NetIQ Identity and Access Management (IAM) | CyberRes
Changing the Default Administrator Assignments after Installation . ... provisioning occurs within the context of the corporate security policy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found