Skip to content

Commit 4e5d155

Browse files
committed
Add deployment instructions
1 parent ac7f7bb commit 4e5d155

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@ $ npm run-script build
4444
under version control. Run `npm install` to install and later commit any changes
4545
in `static-files/assets/`.
4646

47+
## Deploy
48+
49+
Once built (see previous chapter), deployment is as simple as hosting the static
50+
website contents of the `tmp/build` directory behind a webserver of your choice.
51+
52+
We use GitHub Pages to deploy this to the live site. This is done by pushing the
53+
contents of the `tmp/build` directory to the repository hosted in
54+
[reactphp/reactphp.github.io](https://github.com/reactphp/reactphp.github.io).
55+
56+
This deployment can be started by executing this:
57+
58+
```bash
59+
$ bin/build --deploy
60+
```
61+
62+
Note that this will publish any changes you've made to your local repository,
63+
including any uncommitted ones. There should usually be no need to do this
64+
manually, see next chapter for auto-deployment.
65+
4766
## Auto-Deployment with Travis CI
4867

4968
The website can be automatically deployed via the Travis CI

0 commit comments

Comments
 (0)