Home

Cătălin Mariș edited this page May 18, 2015 · 18 revisions
Clone this wiki locally

Domains

Server Information:

/home/aurgasm/ ├── demo.html5boilerplate.com/ ├── h5bp.com/ │ ├── .htaccess │ └── ... ├── html5boilerplate.com/ │ ├──.htaccess │ ├── html5boilerplate/ │ ├── mobileboilerplate/ │ └── ... ├── ... ├── update-h5bp.sh └── ...


#### `demo.html5boilerplate.com/`

* contains the code from the [`dist`](https://github.com/h5bp/html5-boilerplate/tree/master/dist) directory of the [`html5-boilerplate`](https://github.com/h5bp/html5-boilerplate) repository
* the content is updated when the `update-h5bp.sh` is executed

#### `h5bp.com/`
* contains [@mathiasbynens](https://github.com/mathiasbynens/)'s [php-url-shortener](https://github.com/mathiasbynens/php-url-shortener) that handles most of the short URL redirects (`http://h5bp.com/<path>`), e.g.:

  | Path | URL |
|:---|:---|
| / | `http://html5boilerplate.com/` |
| /@ | `https://twitter.com/h5bp` |
| /`<number>` | if `<number>` has less then 9 digits, the `php-url-shortener` will redirect the page to  `https://github.com/h5bp/html5-boilerplate/issues`, otherwise, it will redirect it to `https://twitter.com/h5bp/status/<number>` |
| /`<string>` | if an entry for the `<string>` exists in the database, the `php-url-shortener` will redirect the page to the `<string>`'s associated URL, otherwise, it will redirect it to `http://html5boilerplate.com/<string>` |

* contains a `.htaccess` file that handles the following redirects:

  | Slug | URL |
|:---|:---|
| /b/\<number\> | `https://github.com/h5bp/html5-boilerplate/issues/<number>` |
| /demo | `http://demo.html5boilerplate.com/` |
| /d/\<anything\> | `http://html5boilerplate.com/docs/<anything>` |
| /group | `https://groups.google.com/d/forum/html5boilerplate` |
| /i/\<number\> | `https://github.com/h5bp/html5-boilerplate/issues/<number>` |
| \<other\> | required by the `php-url-shortener` |


#### `html5boilerplate.com/`

* contains in:
   * `/html5boilerplate/` the code from the [`gh-pages`](https://github.com/h5bp/html5boilerplate.com/tree/gh-pages) branch of the [`html5boilerplate.com`](https://github.com/h5bp/html5boilerplate.com) repository
   * `/mobileboilerplate/` the code from the [`gh-pages`](https://github.com/h5bp/html5boilerplate.com-mobile/tree/gh-pages) branch of the [`html5boilerplate.com-mobile`](https://github.com/h5bp/html5boilerplate.com-mobile) repository

 * the content from both `/html5boilerplate/` and `/mobileboilerplate/` is updated when `update-h5bp.sh` is executed

* contains a `.htaccess` file that:
  *  handles the following redirects (required for legacy reasons):

    | Slug | URL |
|:---|:---|
| /docs/changelog/ | https://github.com/h5bp/html5-boilerplate/blob/master/CHANGELOG.md |
| /docs/? | https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/TOC.md |
| /docs/\<anything\> | https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/TOC.md |
| /html5boilerplate-site | http://html5boilerplate.com/ |

   * maps:

       *  `http://html5boilerplate.com/mobile/` to `/mobileboilerplate/` 
       *  everything else to `/html5boilerplate/`

#### `update-h5bp.sh`

* is executed every 20 minutes by a cron job that Paul owns
* updates the content for:

   * [`http://demo.html5boilerplate.com`](http://demo.html5boilerplate.com)
   * [`http://html5boilerplate.com`](http://html5boilerplate.com/)
   * [`http://html5boilerplate.com/mobile`](http://html5boilerplate.com/mobile)

  by fetching the latest changes from the different repositories