]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - README.md
Add issue template
[github/Chocobozzz/PeerTube.git] / README.md
index 668745c14e001cfce5fc9157c8751ee9a477c5bb..e8f2ff0a44dd1811d19d3adddd25547f5a00feb2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,21 +1,19 @@
 # PeerTube
 
-*Server*
-
+**Server**
 [![Build Status](https://travis-ci.org/Chocobozzz/PeerTube.svg?branch=master)](https://travis-ci.org/Chocobozzz/PeerTube)
 [![Dependencies Status](https://david-dm.org/Chocobozzz/PeerTube.svg)](https://david-dm.org/Chocobozzz/PeerTube)
 [![devDependency Status](https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg)](https://david-dm.org/Chocobozzz/PeerTube#info=devDependencies)
 [![Code climate](https://codeclimate.com/github/Chocobozzz/PeerTube/badges/gpa.svg)](https://codeclimate.com/github/Chocobozzz/PeerTube)
 
-*Client*
-
+**Client**
 [![Dependency Status](https://david-dm.org/Chocobozzz/PeerTube.svg?path=client)](https://david-dm.org/Chocobozzz/PeerTube?path=client)
 [![devDependency Status](https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg?path=client)](https://david-dm.org/Chocobozzz/PeerTube?path=client#info=devDependencies)
 
-Prototype of a decentralized video streaming platform using P2P (bittorrent) directly in the web browser with [WebTorrent](https://github.com/feross/webtorrent).
-
 [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
 
+Prototype of a decentralized video streaming platform using P2P (bittorrent) directly in the web browser with [WebTorrent](https://github.com/feross/webtorrent).
+
 ![screenshot](https://lutim.cpy.re/vC2loRww)
 
 ## Demonstration
@@ -94,7 +92,7 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t
 
 ## Usage
 
-### Run the server
+### Development
 
     $ npm start
 
@@ -105,6 +103,18 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t
 
 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 :)
 
+### Production
+
+If you want to run PeerTube for production (bad idea for now :) ):
+
+    $ cp config/production.yaml.example config/production.yaml
+
+Then edit the `config/production.yaml` file according to your webserver configuration.
+
+Finally, run the server with the `production` `NODE_ENV` variable set.
+
+    $ NODE_ENV=production npm start
+
 ### Other commands
 
 To print all available command run: