Everything AND the kitchen sync: Bluemix Live Sync is here!

Everything AND the kitchen sync: Bluemix Live Sync is here!

Share this post:

This blog post is an update to a post written by Scott Darlington on the DevOps Services blog in February 2015.


Do you find yourself trying to iterate on your app in the cloud? If so, this scenario is probably very familiar to you: You make a small code change, then wait patiently for a full redeploy of your app so that you can test it. This workflow works great in a local development environment, with tooling like incremental build and hot code swap… But thus far, it has been difficult to make this workflow fast and efficient using a cloud runtime as your execution environment.

Well, what if you could develop applications running on Bluemix incrementally? What if, the minute you save a file, your code is deployed to your running Bluemix app instance, enabling a wonderfully efficient code-test cycle? Bluemix Live Sync lets you do just that!

Bluemix Live Sync has two key capabilities:

  • Live Edit: Deploy a Node.js application so that any changes you make via the Web IDE, are instantly propagated to the application’s file system.
  • Debug: For Node.js applications, restart, get shell access, and use the Node Inspector debugger.

Live Edit mode ON in the Web IDE

When you’re working with an app running on Bluemix, sometimes you’re making sweeping changes to your code and you want to guarantee a “fresh start”. So, you completely redeploy your app using the Delivery Pipeline, the Cloud Foundry CLI, or the Web IDE. But other times, you’re just making minor changes like:

  • Fixing a particular function
  • Modifying one of the messages that is displayed
  • Updating fonts and colors
  • Replacing images

A full redeployment for simple changes like this can be aggravating because you can spend more time waiting for the deployment to complete than it took to make the change. With Bluemix Live Sync:

  • If you need to change an image or a CSS file, you simply make the change in your local environment and refresh your browser.
  • If the change you want to make needs a server restart, killing the process and restarting it is pretty fast with the Restart button.
  • You can use Node Inspector to debug Node.js applications.

Bluemix Live Sync allows you to work in the Web IDE and have your code automatically sync with your app instance running in Bluemix, enabling that rapid iteration workflow that you’ve already dreamed could be possible in the cloud!

Use the Bluemix Debugger for node.js:

Bluemix debug for Node.js

… to launch the Node inspector:

Bluemix debug node inspector

… or access the debug shell:

Bluemix debug shell

You’ll see how much more quickly you can work. In many cases, it just won’t be worth setting up a local runtime environment anymore.

So far, we have delivered first class support for Node.js and Java runtimes, but there is much more to come! Please let us know what runtimes and capabilities you think we should focus on.

For more information, please check out the Bluemix Live Sync documentation.  To try out Live Sync, see the Use Bluemix Live Sync to develop, debug, and deploy your app tutorial.

Happy syncing!

#awvi,#bluemix,#ibm

Bluemix

via Bluemix Blog https://ibm.co/2pQcNaA

July 24, 2017 at 12:39PM

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s