{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1555","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1555/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1555/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1555/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1555","id":83416155,"number":1555,"title":"Paths altered by usemin in prod build doesnt work with a context in app servers","user":{"login":"deepu105","id":1107223,"avatar_url":"https://avatars.githubusercontent.com/u/1107223?v=3","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-01T09:59:53Z","updated_at":"2015-06-13T14:15:23Z","closed_at":null,"body":"Was looking into this [issue](https://stackoverflow.com/questions/30404042/jhipster-running-application-inside-a-context-image-and-glyphicons-problems#) raised by JH user @iuricmp and found the below.\r\n\r\nNot sure if this is a usemin plugin issue or a config issue on JH side\r\n\r\nIssue:\r\n\r\nThe image paths and font paths in `*.vendor.css` and `*.main.css` works only if the application is run from the root context as these are currently something like ` /bower_components/*` and `/assets/*` which would be 404 when the app is deployed as a war in say for example tomcat `webapps/jhipster.war` or similar in Jboss etc.\r\nIf I manually update the generated css files like this replacing `/bower_components` with `../../bower_components` and `/assets` with `../../assets` it works\r\n\r\nFrom console logs even websocket doesnt seem to work with context on path as the request URL is missing the app context on path\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1107223/7910599/c5fbe176-0888-11e5-97c5-860d2fcdacd8.png)\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/111712898","html_url":"https://github.com/jhipster/generator-jhipster/issues/1555#issuecomment-111712898","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1555","id":111712898,"user":{"login":"phouverney","id":2746829,"avatar_url":"https://avatars.githubusercontent.com/u/2746829?v=3","gravatar_id":"","url":"https://api.github.com/users/phouverney","html_url":"https://github.com/phouverney","followers_url":"https://api.github.com/users/phouverney/followers","following_url":"https://api.github.com/users/phouverney/following{/other_user}","gists_url":"https://api.github.com/users/phouverney/gists{/gist_id}","starred_url":"https://api.github.com/users/phouverney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phouverney/subscriptions","organizations_url":"https://api.github.com/users/phouverney/orgs","repos_url":"https://api.github.com/users/phouverney/repos","events_url":"https://api.github.com/users/phouverney/events{/privacy}","received_events_url":"https://api.github.com/users/phouverney/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T14:15:23Z","updated_at":"2015-06-13T14:15:23Z","body":"Maybe one file config can help.\r\nThe API URL could be in this file."}}