aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-20 15:27:16 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-20 15:29:25 +0200
commitf1f4732f8ef20b1c33058b9b2c486d4b5e87b646 (patch)
treeb14b6dfaad20686f1ea1612e54b4a7c916e1c773
parent93652f8d1ad0edcce8ae32a261b1e357688da7b8 (diff)
downloadPeerTube-f1f4732f8ef20b1c33058b9b2c486d4b5e87b646.tar.gz
PeerTube-f1f4732f8ef20b1c33058b9b2c486d4b5e87b646.tar.zst
PeerTube-f1f4732f8ef20b1c33058b9b2c486d4b5e87b646.zip
Add production example file
-rw-r--r--.gitignore1
-rw-r--r--README.md14
-rw-r--r--config/production.yaml.example4
3 files changed, 18 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 9d9b1978b..a79cc6a97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ public/stylesheets/global.css
12public/stylesheets/vendor 12public/stylesheets/vendor
13uploads 13uploads
14thumbnails 14thumbnails
15config/production.yaml
diff --git a/README.md b/README.md
index 3c9a6e4d9..e8f2ff0a4 100644
--- a/README.md
+++ b/README.md
@@ -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
104Then 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 :) 104Then 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
108If you want to run PeerTube for production (bad idea for now :) ):
109
110 $ cp config/production.yaml.example config/production.yaml
111
112Then edit the `config/production.yaml` file according to your webserver configuration.
113
114Finally, 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
108To print all available command run: 120To print all available command run:
diff --git a/config/production.yaml.example b/config/production.yaml.example
new file mode 100644
index 000000000..6dc79d73f
--- /dev/null
+++ b/config/production.yaml.example
@@ -0,0 +1,4 @@
1webserver:
2 https: false
3 host: 'example.com'
4 port: 80