FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

Can't use ungit on c9.io #494

Open kosir opened 9 years ago

kosir commented 9 years ago

Hi, I'd really like to use ungit on my cloud9 development environment, but no success. Can you please look at c9.io why this is happening? Webpage says "The server refused the connection". I tried localhost, ip, no success. Thanks.

kosir commented 9 years ago

I just found answer on the web: http://root-project.org/2014/07/09/work/ungit-on-cloud9/ I tested that and it's working fine, so consider this solved. Thanks. BR

jung-kim commented 9 years ago

It's really cewl to see ungit being used by people and c9 installation guide is out there for people to use.

Cheers!

kosir commented 9 years ago

.Now I have another problem: from http://root-project.org/2014/07/09/work/ungit-on-cloud9/: KNOWN ISSUES Cloud9 only have a single port that is exposed to the internet which is internally set to 8080. For some reason it's not possible to expose multiple services at once which means you have to stop any other web application before you can launch ungit.

I would like to have ungit open when working with wordpress (apache) or meteor stuff. I tried some proxy/reverse proxy solutions, but none worked. If someone have experience how to solve this, please let me know.

Ajedi32 commented 9 years ago

That sounds more like a limitation with Cloud9 than with Ungit. Though I suppose you could set up a web server running on 8080 which forwards to Ungit running on a different port.

Does ungit allow itself to be served from a URL that's not on the root of the server?

FredrikNoren commented 9 years ago

@Ajedi32 To answer the second question: Not really. Ungit creates its own http server, which then serves it from a port. Maybe if you use some proxy, but I have a vague memory of someone trying this and having problems with the way files were served (they assumed absolute path I think). Probably something that's not too hard to fix but haven't had the time to try it out.

@kosir I have to agree with the other guys here that it's really awesome you're trying this out! I'm not sure what the c9 policy is on ports. @javruben might have some more insights? Maybe asking nicely is all it takes to open another port ;)

javruben commented 9 years ago

@kosir, @FredrikNoren We have multiple ports in the workspace on the roadmap. The plan is to open up 5 ports in total. This is however more likely to happen in Q2 than Q1. Another solution is to configure apache to proxy to both your web server as well as ungit. That way you could use both on a single port. I hope this helps!

FredrikNoren commented 9 years ago

@javruben thanks!

Ajedi32 commented 9 years ago

So if #313 gets fixed, I'm assuming you could just use a reverse proxy/http server like Nginx to forward requests under a subpath like /ungit to ungit.

kosir commented 9 years ago

@javruben @FredrikNoren Thanks to all of you. It's good to know that it's on the road-map.

jung-kim commented 9 years ago

I think you can create a page within wordpress that opens up 127.0.0.1:[ungit-port]. So essentially using wordpress as a proxy while ungit is running on the background.

Now this assumes c9 is allowing loopback connection to ports other then 8080.

javruben commented 9 years ago

@codingtwinky we do. You can open any port on the loopback device.