oops revert back to 'pages'

This commit is contained in:
AJ ONeal 2017-08-01 09:49:25 -06:00
parent 7a28788b7f
commit 11468adddc
1 changed files with 15 additions and 12 deletions

View File

@ -210,16 +210,16 @@ Deleting those files will rese
Accessing static apps
---------------------
Static apps are stored in `var/sites`
Static apps are stored in `packages/pages`
```
# App ID as files with a list of packages they should load
# note that '#' is used in place of '/' because files and folders may not contain '/' in their names
/srv/walnut/var/sites/<domain.tld#path> # https://domain.tld/path
/srv/walnut/var/sites/<domain.tld> # https://domain.tld and https://domain.tld/foo match
/srv/walnut/packages/pages/<domain.tld#path> # https://domain.tld/path
/srv/walnut/packages/pages/<domain.tld> # https://domain.tld and https://domain.tld/foo match
# packages are directories with reverse dns name # For the sake of debugging these packages can be accessed directly, without a site by
/srv/walnut/var/sites/<tld.domain.package> # matches apps.<domain.tld>/<package-name> and <domain.tld>/apps/<package-name>
# packages are directories with email-style name # For the sake of debugging these packages can be accessed directly, without a site by
/srv/walnut/packages/pages/<package@domain.tld> # matches apps.<domain.tld>/<package-name> and <domain.tld>/apps/<package-name>
```
Accessing REST APIs
@ -287,16 +287,19 @@ The permissions:
```
/srv/walnut/packages/
├── client-api-grants
│ └── cloud.foobar.me
│ '''
│ hello@example.com # refers to /srv/walnut/packages/rest/hello@example.com
│ '''
└── client-api-grants
└── cloud.foobar.me
'''
hello@example.com # refers to /srv/walnut/packages/rest/hello@example.com
'''
```
```
/srv/walnut/var/
└── sites
└── daplie.me
'''
seed@example.com # refers to /srv/walnut/var/sites/seed@example.com
seed@example.com # refers to /srv/walnut/packages/pages/seed@example.com
'''
```