w3c-css icon indicating copy to clipboard operation
w3c-css copied to clipboard

Make config.host dynamic

Open smonff opened this issue 8 years ago • 3 comments

When you use the validator extensively, it sometimes makes sense to use a local instance of it, either because you don' t want to flood the validator, but also because, during the development process, all you files are not available from the outside world, and you don' t always work on open source projects.

If a parameter could be use for the config.host value, it would be appreciated.

smonff avatar Apr 27 '16 08:04 smonff

Hi @smonff, Thanks for feedback!

Agreed, that's a problem. I'll look into it.

gchudnov avatar Apr 28 '16 10:04 gchudnov

The support of a local instance is on the way..

Just added Dockerfile to deploy the validator locally.

gchudnov avatar May 02 '16 10:05 gchudnov

Relesed 2.0.0

Added an option to specify a custom server:

  • server - the "IP:PORT" string or the URL object of a custom validation server, e.g, '172.17.0.2:8080' or { host: '172.17.0.2:8080' } or { hostname: '172.17.0.2:8080', port: 8080 }

Added npm run scripts to run the validation server locally in a docker container.

An updated readme is here

Let me know if there are any problems.

gchudnov avatar May 03 '16 11:05 gchudnov