Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 113: Deploying custom business logic timers to production
May 2, 2015 by markpiller
Spread the love

Now that you know how to generate code for custom business logic timers (Backendless background jobs) and how to locally debug custom business logic, it is time to learn how to deploy that code to production. By “production” I mean the Backendless Online service running in the cloud. It may not be your ultimate production phase – you may still be developing the application, but it is a convenient way to distinguish it from the debugging/development step.

In order to push your custom server-side code with Timers to Backendless, the CodeRunner distribution and the zip file downloaded from the Business Logic code generator, include a command line utility. The utility name is “Deploy” and it has an appropriate extension for the supported operating systems (.sh for Linux and .bat for Windows).

To run the utility, open a command prompt window and change the current directory to the /bin directory which is a part of CodeRunner SDK (and it is also present in the CBL zip downloaded from console). Run the utility without any arguments:

Notice the command output informs you of how many timers were found and deployed to your Backendless backend:

Once the code is deployed, you can confirm it using Backendless console:

  1. Click the Business Logic icon.
  2. Select the Timers section from the list on the left.
  3. Click the Production tab:timer in production - Feature 113: Deploying custom business logic timers to production

Once a timer code is in production, it is executed entirely on the Backendless servers according to the scheduled specified in the timer code. There is also a way to run the timer on-demand using the button in the Run column on the interface shown in the screenshot above.

Enjoy!

Share this post
Tweet about this on TwitterShare on FacebookGoogle+