When deployed to our production server(AWS Linux, Tomcat 8, Grails 3.3.3, Java 1.8) the app cannot find the view. When running locally (grails prod run-app, grails run-app, Java 1.8) there is no issue.
View(alive.gson)
import java.time.Instant
json{
dateTime Instant.now().toEpochMilli()
version config.getProperty("info.app.version", String, null)
}
URL Mappings
"/apistatus"(view:"alive")
URLS
http://localhost:8080/cf/apistatus (works without issue)
https://my.domain.com/cf/apistatus (throws exception - javax.servlet.ServletException: Could not resolve view with name 'alive' in servlet with name 'grailsDispatcherServlet')
Update
I've configured the app according to this issue which has not worked