mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 00:38:03 -06:00
Add production example file
This commit is contained in:
parent
93652f8d1a
commit
f1f4732f8e
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ public/stylesheets/global.css
|
||||
public/stylesheets/vendor
|
||||
uploads
|
||||
thumbnails
|
||||
config/production.yaml
|
||||
|
14
README.md
14
README.md
@ -92,7 +92,7 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t
|
||||
|
||||
## Usage
|
||||
|
||||
### Run the server
|
||||
### Development
|
||||
|
||||
$ npm start
|
||||
|
||||
@ -103,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:
|
||||
|
4
config/production.yaml.example
Normal file
4
config/production.yaml.example
Normal file
@ -0,0 +1,4 @@
|
||||
webserver:
|
||||
https: false
|
||||
host: 'example.com'
|
||||
port: 80
|
Loading…
Reference in New Issue
Block a user