CodeboxIDE / codebox

Open source cloud & desktop IDE
https://www.codebox.io
Apache License 2.0
4.11k stars 589 forks source link

Running `pub serve` for Dart project seems broken #431

Open sethladd opened 10 years ago

sethladd commented 10 years ago

Hi,

For the default Dart project, (http://15872a49-5c22-4d3d-ad9a-83a5c3a4b5f8.vm1.dynobox.io/) I trued "Project | Perform action | dart:pub:serve" which seemed to start pub serve.

However, when I try to access it, I get this error:

Dynobox | Web App not Found
You were trying to access a HTTP application running inside a box, however failed to access it for one of the following reasons :

The box this service is running on is off
The web server you're trying to reach hasn't yet finished booting
The server on the box is bound to "localhost" instead of "0.0.0.0.0" and thus can not accept external requests
wiber commented 10 years ago

The solution was found with a bit of googling, heres a working repo

https://github.com/wiber/DARTonCODEBOX.git

It works when you specify address and port as a command line argument, and you need to add /index.html to the http address.