# apt-get upgrade -y
# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
# apt-get install -y nodejs ffmpeg postgresql-9.4 openssl nginx yarn
- # npm install -g npm@3
# Database
We need to create the database:
CREATE USER peertube WITH PASSWORD 'peertube';
CREATE DATABASE peertube_prod OWNER peertube;
- GRANT ALL PRIVILEGES ON DATABASE peertube to peertube;
+ GRANT ALL PRIVILEGES ON DATABASE peertube_prod to peertube;
\q
# User
$ cd /home/peertube
$ git clone -b master https://github.com/Chocobozzz/PeerTube
$ cd PeerTube
- $ npm install
+ $ yarn install
$ npm run build
# Configuration files