Search Results

Pushing and Deploying Node.js Apps

After adding your own code to the generated code stubs, you can push the code to TIBCO Cloud Integration and run your app. Before pushing your app to TIBCO® Cloud Integration, it’s highly recommended that your app is tested in your development environment.

To push a Node.js app, first package the app. Then, use the web UI or the TIBCO Cloud CLI to push the app.

Packaging the App

  1. Before zipping up your code, remove the node_modules folder under the code’s root directory, so the ZIP archive will not contain the Node.js modules downloaded during development. The Node.js modules required by your code will be installed by Cloud Integration after your app is pushed, as long as they are defined in the package.json file.

  2. Zip up the folder that contains the code; this is the folder which is at the same level as the manifest.json file, so the ZIP archive doesn’t include the manifest file.

Pushing an App With the TIBCO Cloud CLI

  1. Log in with the TIBCO Cloud CLI as shown in Logging In With the TIBCO® Cloud - Command Line Interface.

    For example:

     tibcli login 
    
  2. Move your app and the manifest.json file into an empty temporary directory, and then change to that directory.

    For example, given an app myApp.zip and manifest in your home directory:

     mkdir tmp-app
     cd tmp-app
     cp ~/myApp.zip .
     cp ~/manifest.json .
    
  3. Push the app using the tibcli app push command.

    For example, given that tibcli is in the path, push the app in the current directory:

     tibcli app push 
    

    If the push is successful, an app named as the name property in the manifest.json file will be created and started on Cloud Integration.

Note: If there is an existing app with an identical name as the app that you are trying to push to the cloud, the existing app will be overwritten with the newly pushed app. You will not see a warning about it.

You can also use all the tibcli command-line parameters to specify the app name, the desired instance count, the sandbox, and so on.

Pushing an App With the Web Interface

  1. Log in to TIBCO® Cloud Integration.
  2. From the top navigation bar, click Apps.
  3. First, create a new app, as outlined in Creating an App. This creates an empty app. The app creation page with the available build types is shown.

    Note: If there is an existing app with an identical name as the app that you are trying to push to the cloud, the existing app will be overwritten with the newly pushed app. You will not see a warning about it.

  4. Click the Push Integration App tile. The Push App window is displayed.

  5. Drag and drop the EAR archive file and manifest file manifest.json files onto this window. If you are using Chrome, you can drag a folder into this window. You can also click browse to upload and find the files on your system.

  6. Click Push.

    You will now be shown the progress of the app as it is being uploaded, built, and deployed.

Note: Do not refresh your browser after clicking Push until the push operation has completed. Refreshing the page will cancel the operation.