AbinashBishoyi / mongo-vision

Automatically exported from code.google.com/p/mongo-vision
Apache License 2.0
1 stars 0 forks source link

Allow easy configuration of port #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is more of a feature request than a defect, but I'd like to be able to run 
mongo-vision on a port different from 8080.

In fact, I'd like to be able to specify the port for the server when I execute 
the launch script (sub-optimal: by editing a configuration file).

Maybe this is possible with Sincerity (I seem to gather it uses Jetty under the 
hood?) so perhaps just an explanation of how to do this in the configuration 
section of the main page.

What version of the product are you using? On what operating system?

1.1dev3
Linux Ubuntu 12.04

Please provide any additional information below.

mongo-vision is awesome, please keep adding to it!

Original issue reported on code.google.com by m.massen...@gmail.com on 27 May 2013 at 7:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you for this. A new version of MongoVision will be released soon, and as 
part of the deal I'm finally adding some actual documentation. :)

And... I really like the idea of specifying the port in the command line. So, I 
am treating this as a feature request for Prudence: support an environment var 
to set the default port. Thanks!

Original comment by tal.liron on 31 May 2013 at 2:59

GoogleCodeExporter commented 9 years ago
Actually, this ended up being a feature for Sincerity. It has been committed 
and will be available in the next release. The way it will work is with an 
environment var (or optionally a JVM property):

RESTLET_PORT=8081 sincerity start restlet

Original comment by tal.liron on 31 May 2013 at 3:18

GoogleCodeExporter commented 9 years ago
I'd like to quote myself: "mongo-vision is awesome" :)

thank you so much!

(and did I mention I already blogged about it? :)

Original comment by m.massen...@gmail.com on 31 May 2013 at 6:00

GoogleCodeExporter commented 9 years ago
I'd love to see the blog post!

I'm working on releasing the new version soon, but since Google Code no longer 
supports downloads, I need to find a good plan B.

Original comment by tal.liron on 1 Jun 2013 at 8:48

GoogleCodeExporter commented 9 years ago
well, I didn't want to do too much self-promotion, but as you ask... :)

http://codetrips.com

Original comment by m.massen...@gmail.com on 1 Jun 2013 at 8:05

GoogleCodeExporter commented 9 years ago
oh, btw - as you are already using git and sharing the code, I'd strongly 
suggest github: I now use it for all my projects (both personal and at work) 
and it works flawlessly with a ton of features too.

Google Code feels a bit 'old' and now abandoned (and it pains me to say this, 
as an ex-Googler).

Original comment by m.massen...@gmail.com on 1 Jun 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Thank you for the kind post.

As of now, I still have a preference for Google Code due to its much better bug 
tracker. While GitHub has nice features for coders, its bug tracker is anything 
but friendly.

Original comment by tal.liron on 2 Jun 2013 at 3:11

GoogleCodeExporter commented 9 years ago
I'm trying to run mongovision on PORT=8081, 8080 port is already in 
used.(Tomcat Server is running).
Can we access both at the same time.?

root@user:/home/user/Downloads/mongovision-1.1-dev3# RESTLET_PORT=8081 
./sincerity start restlet
Prudence 2.0-dev3 (Restlet 2.1.2 JSE)
Setting up application: "MongoVision"
Setting up application: "Prudence Administration"
Wrapped com.threecrickets.sincerity.exception.SincerityException: Wrapped 
java.net.BindException: Address already in use (component/default.js#56) 
(programs/restlet.js#16)

Thanks.

Original comment by shreejee...@oringis.com on 5 Sep 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Open up the file component/servers/http.js in a text editor 

Find the line 

var server = new Server(Protocol.HTTP, 8080)

and change the value 8080 to the new port you want.

Original comment by computer...@gmail.com on 15 Oct 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Actually, comment #9 is correct: the RESTLET_PORT environment var is supported 
for this. For more details, see the Restlet skeleton:

http://threecrickets.com/sincerity/ecosystem/skeletons/#restlet-skeleton

And, I just tested this and it works.

Original comment by tal.liron on 8 Dec 2013 at 2:41