mirror of https://github.com/Chocobozzz/PeerTube
Remove Node 4 support
parent
165c8d2558
commit
85ec3eb7f3
|
@ -1,7 +1,6 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- "4"
|
|
||||||
- "6"
|
- "6"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -121,7 +121,7 @@ See [wiki](https://github.com/Chocobozzz/PeerTube/wiki) for complete installatio
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
* **NodeJS >= 4.x**
|
* **NodeJS >= 6.x**
|
||||||
* **npm >= 3.x**
|
* **npm >= 3.x**
|
||||||
* OpenSSL (cli)
|
* OpenSSL (cli)
|
||||||
* PostgreSQL
|
* PostgreSQL
|
||||||
|
@ -129,13 +129,12 @@ See [wiki](https://github.com/Chocobozzz/PeerTube/wiki) for complete installatio
|
||||||
|
|
||||||
#### Debian
|
#### Debian
|
||||||
|
|
||||||
* Install NodeJS 4.x (actual LTS): [https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
|
* Install NodeJS 6.x (actual LTS): [https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
|
||||||
* Add jessie backports to your *source.list*: http://backports.debian.org/Instructions/
|
* Add jessie backports to your *source.list*: http://backports.debian.org/Instructions/
|
||||||
* Run:
|
* Run:
|
||||||
|
|
||||||
# apt-get update
|
# apt-get update
|
||||||
# apt-get install ffmpeg postgresql-9.4 openssl
|
# apt-get install ffmpeg postgresql-9.4 openssl
|
||||||
# npm install -g npm@3
|
|
||||||
|
|
||||||
#### Other distribution... (PR welcome)
|
#### Other distribution... (PR welcome)
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,25 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
nodeMinVersion="v6.0.0"
|
||||||
|
npmMinVersion="3.0.0"
|
||||||
|
|
||||||
git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
|
if [[ $(node --version) < $nodeMinVersion ]]; then
|
||||||
|
echo 'You need node >= 6'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(npm --version) < $npmMinVersion ]]; then
|
||||||
|
echo 'You need npm >= 3'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if pgrep peertube > /dev/null; then
|
if pgrep peertube > /dev/null; then
|
||||||
echo 'PeerTube is running!'
|
echo 'PeerTube is running!'
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
npm update
|
npm update
|
||||||
cd client && npm update && cd ../
|
cd client && npm update && cd ../
|
||||||
|
|
Loading…
Reference in New Issue