Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

All server options to launch

#1

Currently the server only takes a port configuration to launch. It should take all configurations... or just configure itself from the server directory.

Reported by bahuvrihi · March 7th, 2009 @ 09:53 PM

State: resolved
Milestone: none
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi

    The launch mechanism has been modified but it still isn't perfect. Ideally:

    • Ubiquity invokes a ruby command that returns the url of the local server
    • Ubiquity invokes the local server
    • Ubiquity sets itself up using the url by querying the server for the server configs.

    The three step process is necessary because before the server exists, Ubiquity cannot know where to look for server configs. By splitting up the initial query and the invocation, you can re-use step 2 in manually launching a server. By having Ubiquity set itself up by querying an active server, step 3 can also be re-used when you want to specify a remote server for Ubiquity to use.

    As it stands Tap-Ubiquity uses a file pass the url message from the process to the server. It's not idea because after the server launches there's a callback to delete the file. Better if step one simply prints out the url, which either gets read directly into Ubiquity, or gets dumped to a tempfile that Ubiquity manages.

    Normally you don't want Ubiquity to be able to shutdown a server, because the url may have been set to a remote site that Ubiquity doesn't control. In step two, provide a Ubiquity-generated shutdown key that can trigger a kill.

    At present step 3 doesn't seem necessary because Ubiquity only needs the uri (which is obviously provided or determined elsewhere). In the future step 3 is when Ubiquity gets information about what commands are available, for instance.

    March 9th, 2009 @ 10:43 AM

  2. bahuvrihi
    bahuvrihi

    Here's a list of info to get:

    |uri|base uri of the SERVER, ie http://localhost:8080/tap-ubiqui...| |dispatch path|dispatch| |query parameters|whatever Ubiquity may provide, args, selected text, etc.|

    March 9th, 2009 @ 10:52 AM

  3. bahuvrihi
    bahuvrihi
    • State changed from new to resolved
    • Assigned user set to bahuvrihi

    (from [688237023b604b39f63076391c70f4df92b9e3fe]) updated launch cycle [#1 All server options to launch state:resolved responsible:bahuvrihi] http://github.com/bahuvrihi/tap-...

    March 10th, 2009 @ 03:04 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.