loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Docs are not created in production #68

Open RafalPydyniak opened 8 years ago

RafalPydyniak commented 8 years ago

Hey! We've started using this plugin in our project and everything works just fine when I'm testing it locally but then after deploying it to the server the docs are not created but there not any errors in tomcat logs.

Right now I'm not sure if I'm doing everything right. When I create docs locally I use grails rest-api-doc command and it works. When I deploy to the server I just create war, put it on tomcat and run it there - I can't run grails rest-api-docs there so I guess docs should be created while starting app (Documentation is not clear about it) but nothing happens. I created restapidoc.json, I checked if new File( 'restapidoc.json' ).absolutePath works and then I even tried to write something to this file - it worked as well. So my question is am I doing something wrong or there's some bug in the plugin?

I'm using grails 2.4.5, rest-api-doc 0.6 and resources 1.2.14 I'd be glad for any help