binlecode / grails-appinfo

Apache License 2.0
1 stars 0 forks source link

Help - how to use #15

Open jnunderwood opened 5 years ago

jnunderwood commented 5 years ago

I have integrated this plugin into my grails app. I can see the additional info in /health and /info. However, the project documentation does not indicate how to access the dashboard. Please help. Thank you.

binlecode commented 5 years ago

@jnunderwood The dashboard UI is part of the sample app not internal to the plugin. The reason is to keep the plugin lean at RESTful endpoint level and less intrusive to host app (with gsp, js, css etc).

I added documentation of sample app config esp. the dashboard UI, with screenshots. You can check the new README: https://github.com/binlecode/grails-appinfo/blob/dev-grails-3.2.x/README.md

Closing issue with Commit https://github.com/binlecode/grails-appinfo/commit/d04c5d13611579da799b96eb1850cb680e40110d

I will make a bug fix release 1.3.1 accordingly shortly.

Feel free to reopen for further issues and questions, thx.

binlecode commented 5 years ago

@jnunderwood

For grails 3.3.x branch, there are two plugins:

Let me know if you have problem getting them. thx.

jnunderwood commented 5 years ago

Thank you very much for the updates! Much appreciated :-)

It does not appear that the grails-appinfo-ui plugin has been published to the Grails plugin repo yet. I will keep trying, though.

Until then, I have downloaded the project and installed the plugin locally. After disabling gravatar, it seems to be working. It looks great! Two things... the links for More Info on the main Dashboard do not seem to work. Also, when my app starts, I get an error message:

2019-06-25 10:13:44.140 ERROR --- [main] org.grails.plugins.AbstractGrailsPluginManager : Plugin grailsAppinfoUi has an artefact UrlMappings that is being excluded from the application because another artefact exists with the same name without a package defined.

Does the error message have anything to do with "/" being mapped in both the plugin and my app? Just wondering.

binlecode commented 5 years ago

@jnunderwood Thank you for your feedback. Glad it works and hopefully it is useful to you.

For the appinfo-ui not in Grails repo, since I just created during the weekend :), and it may take time for Graeme Rocher to approve my request to add it.

For the urlMapping error, it was due to the plugin has a urlmapping at root pkg level (my laziness...), I fixed it in commit https://github.com/binlecode/grails-appinfo/commit/7740c686f98a5ac0bac2e9679a9b1fbf977eb1a9

For the more-info links, I will reopen this ticket to remind me to work on some more web partials to host detailed /health JSON content.

Cheers.