The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   Web Interface Port Change (http://forums.omnigroup.com/showthread.php?t=4253)

alexspeller 2007-07-21 07:20 AM

Web Interface Port Change
 
Is there any way to change the default port of the OF Web Interface from 3000?

I have lots of things set up based on Ruby on Rails dev sites running on that port, and I don't like the idea of having to change all of that just to run OF Web.

Also, does the use of the port 3000 have anything to do with using rails behind the scenes to generate the web interface? I was thinking about doing that in an app I'm working on ;)

Regards,
Alex Speller

luomat 2007-07-21 10:53 AM

I don't think there's a way to change the port. I looked through all the text files I could find in the .app to see if I could change it by editing one of them and didn't find any.

I believe that Rails is being used:

/Applications/OmniFocus.app/Contents/Resources/rails

luomat 2007-07-21 10:56 AM

when I launched the web interface and went to Terminal and ran 'ps' I saw:

/usr/bin/ruby ~/Library/Application Support/OmniFocus/Web Interface/script/server webrick -e production

alexspeller 2007-07-21 11:47 AM

Heh heh, rails is getting everywhere these days. Looks like my crazy scheme for my project isn't so crazy after all. Thanks for poking :)

luomat 2007-07-23 11:16 AM

WebInterfacePort in build 89114
 
[QUOTE=alexspeller]Is there any way to change the default port of the OF Web Interface from 3000?
[/QUOTE]

The MOTD from OmniFocus-r89114-Alpha.dmg reports:

July 23
Added a hidden preference 'WebInterfacePort' defaulting to 11872. This will avoid using the default Ruby on Rails port 3000, which several testers are using for their own RoR projects.

Terry 2007-07-23 11:31 AM

I can't connect with 11872. 3000 doesn't work either, of course.

Is there a server that should show in Activity Monitor? When I close OF, then try to view in OmniWeb, OF doesn't start like it did when using 3000.

Doesn't work locally or via the Internet.

luomat 2007-07-24 08:22 PM

Silly question
 
[QUOTE=Terry]I can't connect with 11872. 3000 doesn't work either, of course.
[/QUOTE]

Sorry, I have to ask... did you double check to make sure that it is turned on in OF preferences?

[QUOTE=Terry]
Is there a server that should show in Activity Monitor? When I close OF, then try to view in OmniWeb, OF doesn't start like it did when using 3000.

Doesn't work locally or via the Internet.[/QUOTE]

are you trying localhost:11872 or 127.0.0.1:11872 or ?

The only thing I see in activity viewer is 'ruby' when it's running... of course that might be something else if you have other ruby apps running.

Best thing to do is to launch Terminal.app and type (or copy/paste) this:

ps auxww|fgrep -i omnifocus | sed G

which should give you something like this:

tjl 22831 0.8 -1.0 46216 20956 ?? Ss 12:18AM 0:02.78 /usr/bin/ruby /Users/tjl/Library/Application Support/OmniFocus/Web Interface/script/server webrick -e production --port 11872

(note: you can pretty much ignore everything before the /usr/bin/ruby on each line above, as they will change. The point is that you should see the ruby line above if it is running, even if OmniFocus.app is not)

Terry 2007-07-25 10:02 AM

[QUOTE=luomat]Sorry, I have to ask... did you double check to make sure that it is turned on in OF preferences?[/QUOTE]

Yes, in fact I stopped it and restarted the server in case that was necessary.


[QUOTE]are you trying localhost:11872 or 127.0.0.1:11872 or ?[/QUOTE]

Locally I'm actually using 192.168.1.10:11872;

Via the Internet I was using no-ip.

Both worked very well before the port change from 3000. When 11872 was incorporated, nothing worked anymore. Yes, I had changed my Linksys port forwarding.

=-=-=-=--=-=-=-=-=-=-=--=-=-=-=-=-=-=-=

I answered the above question in case I was still doing it wrong. I'm definitely no expert at doing this stuff, but the basics are simple enough.

Anyway, I'm constantly getting the latest sneaky peek, and perhaps the ninjas found something because of my feedback.

I just tried Web access and it's working wonderfully. I haven't changed anything since my original post.


All times are GMT -8. The time now is 06:23 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.