Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
The documentation was wrong. The `.localtld.json` file should be called `.local-tld.json` and the format of the file was wrong. It should have the port as the key and an object with the name as the value.
  • Loading branch information
simianhacker committed Apr 11, 2013
1 parent 1e2dd8e commit 9381409
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -25,17 +25,17 @@ Yes, you can do that by messing with `/etc/hosts`, but it ain’t pretty, and yo
# or for now git clone $thisrepo
$ sudo local-tld setup
# once time sudo required
$ $EDITOR ~/.localtld.json
$ $EDITOR ~/.local-tld.json
{
"myfancyprojectA": {
"port": 8000
"8000": {
"name": "myfancyprojectA"
},
"thatotherprojectB": {
"port": 8001
"8001": {
"name": "thatotherprojectB"
}
}

Dat it. `/.localtld.json` maps the a subdomain to a TCP port. So if you have a httpd running on `localhost:8000` you can now reach it by going to `http://myfancyprojectA.dev`.
Dat it. `/.local-tld.json` maps the a subdomain to a TCP port. So if you have a httpd running on `localhost:8000` you can now reach it by going to `http://myfancyprojectA.dev`.


## I want my app to register itself with local-tld!
Expand Down

0 comments on commit 9381409

Please sign in to comment.