Consume your data from smart phones and cloud-based applications such as Salesforce Connect. You can deploy the CData API Server for your data source to Heroku in 5 steps. The CData API Server is a lightweight Web application for Windows and Java that produces OData feeds for 80+ relational, non-relational, cloud, and on-premises data sources. In this article we show how to use the Webapp Runner Tomcat container and the Heroku Toolbelt to deploy the API Server. You can follow a similar procedure for Jetty Runner.
- Install the Heroku Toolbelt, as well as the Java edition of the CData API Server.
-
On the Resources tab for your app, click Edit in the Add-Ons section. Enter Heroku Postgres in the box, add the database, and click Save.
The API Server persists connection settings and schemas in this database.
- On the Settings tab for your app, click Reveal Config Vars -> Edit and add the following configuration variables:
Configure authentication for the administrator of the API Server: Create a tomcat-users.xml file with the cdata_admin role. You can use the following tomcat-users.xml, based on the default file in a standalone Tomcat installation:
<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<user name="admin" password="admin" roles="cdata_admin" />
</tomcat-users>
- Open a command prompt and execute the following command to deploy the WAR:
heroku deploy:war -w path-to-your-war -a your-app-name -i path-to-your-tomcat-users.xml
You can now log into the API Server. See the Getting Started chapter in the help documentation for a guide to setting required connection properties, allowing access to tables, and making OData queries.