I need to access some data on another database from my Ghost site. This data will be used in a Ghost template. I have therefore created an app using the Ghost-app module. In combination with “express-hbs/lib/async” I manage to fetch data with Ghost-API and use it inside handlebars. My problem is that my
data is outside of the Ghost-database/API and I need a new database connection to do custom queries. When I try to use the mysql-module inside my app, Ghost is throwing “InternalServerError” and “Error: Unsafe App require: mysql”.
So what is the best solution for query custom data? Is it possible to get a database connection if the app is moved to core/server/apps? Using a external REST-service will be to slow for my requirements.
I greatly appreciate any help.