This assumes you're running all of your services on the same host, which is not true for all development environments.  Maybe there's a better way to say <marketplace url> so that if it's localhost use that, or whatever the path to your local marketplace development environment is?