Skip to content

Deploying Code to Production

Deploying code to production can be done using the Deploy.sh utility available in the [project-home]/bin directory.

  1. In a command prompt window change the current directory to [project-home]/bin.
  2. Run the following command:
    on Linux:
    ./bin/Deploy.sh

    on Windows:
    ./bin/Deploy.bat
  3. Once the deployment script runs, it should produce the following output:

your-comp-name:bin username$ ./deploy.sh
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.10 Build date: 20160309-0738
[INFO] CodeRunner session is running for 2 hour and will be terminated on 16:26:25.795[UTC]

[INFO] Registering runner on: https://api.backendless.com with secretKey: 3EAC25F1-5C3F-27CF-FFE8-57347B89A100
[INFO] Runner successfully registered
[INFO] Parsing event model...
[INFO] Build successfully: 1 handler, 0 timers
[INFO] Deploying model to server, and starting debug...
[INFO] Model successfully deployed.
[INFO] Waiting for events...
[INFO] Publishing 1 event handler and 0 timers and 0 services to the server…
[INFO] Successfully published all event handlers and timers.
[INFO] If you connected to coderunner for debug - please stop debugging
[INFO] CodeRunner will shutdown now
[INFO] Debugging Utility disconnected successfully
[INFO] Thank you for using Backendless

  1. Once the code is deployed to production, it is immediately plugged into your application. You can verify the production deployment in Backendless Console. Open the Business Logic section and click EVENT HANDLERS. All deployed event handlers appear with the green color code.

This concludes the Quick Start. You can try repeating the process for other event handler or timers. If you run into any problems or have any questions, do not hesitate contacting us at http://support.backendless.com.