hoodiehq-archive / local-tld

Maintain a TLD on localhost for all your projects
199 stars 20 forks source link

gulp-connect + local-tld #35

Closed Breefield closed 9 years ago

Breefield commented 9 years ago

I'm using gulp connect to serve, like so:

var port = 5000;
  connect.server({
    port: port,
    livereload: true
  });

Which works fine for accessing localhost:5000, however I'm adding local-tld. So it registered itself:

if(process.platform == 'darwin') {
      ltld.add(pkg.name, port);
      gutil.log(pkg.name + '.dev:' + port)
}

And my ~/.local-tld.json is updated, however—http://PACKAGE_NAME.dev won't load assets, it only works when I access http://PACKAGE_NAME.dev:5000.

So it seems local-tld isn't routing the name to the port correctly, simply aliasing localhost. Any thought?

Breefield commented 9 years ago

Decided to use pow.cx's port proxy feature.