diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -92,7 +92,7 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t | |||
92 | 92 | ||
93 | ## Usage | 93 | ## Usage |
94 | 94 | ||
95 | ### Run the server | 95 | ### Development |
96 | 96 | ||
97 | $ npm start | 97 | $ npm start |
98 | 98 | ||
@@ -103,6 +103,18 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t | |||
103 | 103 | ||
104 | Then you will can access to the three nodes at `http://localhost:900{1,2,3}`. If you call "make friends" on `http://localhost:9002`, the pod 2 and 3 will become friends. Then if you call "make friends" on `http://localhost:9001` it will become friend with the pod 2 and 3 (check the configuration files). Then the pod will communicate with each others. If you add a video on the pod 3 you'll can see it on the pod 1 and 2 :) | 104 | Then you will can access to the three nodes at `http://localhost:900{1,2,3}`. If you call "make friends" on `http://localhost:9002`, the pod 2 and 3 will become friends. Then if you call "make friends" on `http://localhost:9001` it will become friend with the pod 2 and 3 (check the configuration files). Then the pod will communicate with each others. If you add a video on the pod 3 you'll can see it on the pod 1 and 2 :) |
105 | 105 | ||
106 | ### Production | ||
107 | |||
108 | If you want to run PeerTube for production (bad idea for now :) ): | ||
109 | |||
110 | $ cp config/production.yaml.example config/production.yaml | ||
111 | |||
112 | Then edit the `config/production.yaml` file according to your webserver configuration. | ||
113 | |||
114 | Finally, run the server with the `production` `NODE_ENV` variable set. | ||
115 | |||
116 | $ NODE_ENV=production npm start | ||
117 | |||
106 | ### Other commands | 118 | ### Other commands |
107 | 119 | ||
108 | To print all available command run: | 120 | To print all available command run: |