aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorBigard Florian <florian.bigard@gmail.com>2017-04-27 11:38:42 +0200
committerGitHub <noreply@github.com>2017-04-27 11:38:42 +0200
commit94f12771f5c0400950b023ef96a1f5c98b271fc3 (patch)
tree58872219ee2e93f2f65d29807628c1a9c0599b6c /scripts
parentbf57f073eea2eeaef08b01ced4f6c105990415ad (diff)
downloadPeerTube-94f12771f5c0400950b023ef96a1f5c98b271fc3.tar.gz
PeerTube-94f12771f5c0400950b023ef96a1f5c98b271fc3.tar.zst
PeerTube-94f12771f5c0400950b023ef96a1f5c98b271fc3.zip
Add yarn to npm run upgrade
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upgrade.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
index 59deae1eb..f974d68e0 100755
--- a/scripts/upgrade.sh
+++ b/scripts/upgrade.sh
@@ -13,6 +13,11 @@ if [[ $(npm --version) < $npmMinVersion ]]; then
13 exit 0 13 exit 0
14fi 14fi
15 15
16if ! which yarn > /dev/null; then
17 echo 'You need yarn'
18 exit 0
19fi
20
16if pgrep peertube > /dev/null; then 21if pgrep peertube > /dev/null; then
17 echo 'PeerTube is running!' 22 echo 'PeerTube is running!'
18 exit 0 23 exit 0
@@ -20,9 +25,9 @@ fi
20 25
21git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1 26git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
22 27
23npm install 28yarn install
24npm update 29yarn update
25cd client && npm update && cd ../ 30cd client && yarn update && cd ../
26npm run build 31npm run build
27 32
28echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts." 33echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."