Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

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...
commit 9381409161f7b0523c8aba544aafb2b6a27fdec4 1 parent 1e2dd8e
@simianhacker simianhacker authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.