From: Chocobozzz Date: Tue, 16 Jan 2018 15:11:40 +0000 (+0100) Subject: Destroyed Debian Jessie production installation guide (markdown) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1e3d1aea194a934929df4fd61a94a01480cadf0;p=oweals%2Fpeertube.wiki.git Destroyed Debian Jessie production installation guide (markdown) --- diff --git a/Debian-Jessie-production-installation-guide.md b/Debian-Jessie-production-installation-guide.md deleted file mode 100644 index 9e93992..0000000 --- a/Debian-Jessie-production-installation-guide.md +++ /dev/null @@ -1,101 +0,0 @@ -Credit: https://github.com/Chocobozzz/PeerTube/issues/33 - -# Dependencies -We need to install dependencies: - - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - echo "deb http://ftp.debian.org/debian jessie-backports main" | sudo tee /etc/apt/sources.list.d/jessie-backports.list - sudo apt-get update - sudo apt-get dist-upgrade - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - - sudo apt-get install -y nodejs ffmpeg postgresql-9.4 openssl nginx yarn g++ make - -# Database -We need to create the database: - - sudo -u postgres createuser -P peertube - sudo -u postgres createdb -O peertube peertube_prod - -# User -We need to create the peertube user: - - sudo useradd -m -d /home/peertube -s /bin/bash -p peertube peertube - -And set its password: - - sudo passwd peertube - - -# Build PeerTube application -Master branch is for production, develop branch is for... development. - - sudo su - peertube - cd /home/peertube - git clone -b master https://github.com/Chocobozzz/PeerTube - cd PeerTube - yarn install - npm run build - -# Configuration files -Copy the production configuration file template: - - sudo su - peertube - cd /home/peertube/PeerTube - cp config/production.yaml.example config/production.yaml - -Modify the configuration file: - - vim config/production.yaml - -# Webserver -Copy the nginx configuration template: - - sudo cp /home/peertube/PeerTube/support/nginx/peertube-https /etc/nginx/sites-available/peertube - -Modify the configuration file: - - sudo vim /etc/nginx/sites-available/peertube - -Active the configuration file: - - sudo ln -s /etc/nginx/sites-available/peertube /etc/nginx/sites-enabled/peertube - sudo systemctl reload nginx - -# Systemd -Copy the service file: - - sudo cp /home/peertube/PeerTube/support/systemd/peertube.service /etc/systemd/system/ - -Update the service file: - - sudo vim /etc/systemd/system/peertube.service - -It should look like this: - - [Unit] - Description=PeerTube daemon - - [Service] - Type=simple - Environment=NODE_ENV=production - User=peertube - Group=peertube - ExecStart=/usr/bin/npm start - WorkingDirectory=/home/peertube/PeerTube/ - StandardOutput=syslog - StandardError=syslog - SyslogIdentifier=peertube - Restart=always - - [Install] - WantedBy=multi-user.target - -Then tell systemd to reload its config: - - sudo systemctl daemon-reload - -# Run PeerTube - - sudo systemctl start peertube - sudo journalctl -feu peertube