ActiveBlog

Komodo IDE 6 - Publishing
by Todd Whiteman

Todd Whiteman, November 4, 2010

Publishing provides the ability to easily synchronize files between a local and remote file system. There are many reasons why you'd want to do this, such as:

  • offline working - synchronize files from a remote server to your local filesystem so you can work on them offline - great for traveling with that laptop. Edit the files locally and then push them back to the server when you get back online!
  • backing up code - setup a publishing configuration to backup local code to a remote server, just in case anything goes wrong. Komodo will intelligently upload only those files that have changed, making code backup tasks efficient.
  • multi-user edits - Komodo's publishing will detect conflicts and allow you to see everything that comes into, and goes out of, your code base. This helps prevent team members from accidentally overwriting each other's work.

How to use it?

Komodo IDE - Publishing Screencast

Use Komodo's Tools->Publishing menu to create a new publishing configuration, where you will store the local and remote filesystem information:

Once you set the local and remote filesystem paths, clicking Save will then show you the differences between the two machines. Creating a Publishing Configuration

At this stage nothing is synchronized yet, though there are icons to show the pending changes, such as:

  • blue plus icon for indicating a file has been added
  • red X icon for indicating a file has been removed
  • pencil icon for showing a file has been modified

The icons show which items are files, and which are folders. Remote items are shown with a link. The right column describes the action that will be taken by Komodo in order to properly synchronize the two filesystems.

After creating a publishing configuration, a new entry will be listed in the Tools->Publishing menu showing the name of your configuration. When selected, this will trigger a synchronization of that publishing configuration.

Synchronizing

When the Synchronize button is clicked, Komodo will start downloading and/or uploading the files that are selected. A green check mark will appear when the file(s) are successfully synchronized.

Note: You can press the stop button (the red x) at anytime to abort the synchronize process, though some files may have already been updated:

Fist Sync

There are right-click context menus available to each file shown, which will give you the ability to show the file differences (diff) for that particular file as well a for resolving conflicts.

Conflicts

Conflicts occur if both the local and remote files have been changed. To resolve this, either deselect the file or choose which side (local or remote) is the winner:

Synchronization Conflict

Status Indicators

Komodo IDE also provides indicators in both the Places tree and the editor tabs to show you the status of the published files - indicating whether the file has been added, edited or is unchanged.

For editing files, you can use the Places context menu or the editor tab context menu to quickly show the diff between the local and remote files:

Files Under Publishing Control

This feature is available in Komodo IDE (on sale for $245/$332 till November 15, 2010), but not in Komodo Edit.

Subscribe to ActiveState Blogs by Email

Share this post:

Category: komodo
About the Author: RSS

Todd Whiteman is the Development Lead for Komodo IDE. He works adeptly with Mozilla, Python and JavaScript to ensure that Komodo IDE is the IDE of choice for development teams. Todd has been working on Komodo IDE for nearly 6 years, adding components such as the Vi Key Bindings, Distributed Source Code Control, 64-bit Linux builds as well as Remote SSH support into Komodo IDE.

Comments

6 comments for Komodo IDE 6 - Publishing
Permalink

Is this new feature meant to work alongside a version control system (such as subversion), or as a replacement for it?

Permalink

It could be used alongside version control, but it's really meant for people who want to use something simpler. It doesn't track change history the same way source control software does, so I wouldn't call it a replacement.

Permalink

This is a great feature. Or, um, feature concept. I've tried to use it, but haven't gotten it to work on two different sites I tried it on.

Also, it seems not to support local copies. That's also unfortunate, for those of us that keep local server test environments.

Permalink

It's awesome that Komodo now supports synchronization!

Now, what I'd really want to be able to do is to sync each file automatically right after it is saved locally. That would be great for working on a local copy of the codebase, which you're testing on your webserver.

A simple automatic file upload could work, but it would ofcourse be better if sync is used, and newer files on the target would cause the system to prompt the user with a diff.

Does anyone know a method (a script perhaps?) that takes care of this?

Permalink

This is great, I am trying it on the demo version but it's actually one of the reasons why I am considering to by the full license.
Two things that I would like to see:
1. better organization for having several configurations (as I work with a high number of different sites)
2. possibility to exclude certain directories

Permalink

This is a great feature. I would really like to see right-click to exclude files/folders. Thanks!