-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·28 lines (23 loc) · 896 Bytes
/
start.sh
File metadata and controls
executable file
·28 lines (23 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
echo "Getting latest business network card from hypervault-id repository"
rm resourceServer.card
composer card delete -c resourceServer@hypervault
wget https://github.com/lixiii/hypervault-id/raw/master/cards/resourceServer.card
composer card import -f resourceServer.card -c resourceServer@hypervault
rm resourceServer.card
echo "Building and running hypervault-rest-server"
cd ./composer-rest-server
source ./start.sh
cd ../
echo "Restarting resource server"
pm2 stop resourceServer
pm2 start server.js --name="resourceServer"
echo "Check server status by running: "
echo "pm2 list"
# Update reverse proxy
echo
echo '---------------------------------------'
echo "Updating reverse proxy"
echo '---------------------------------------'
sudo cp ./resourceserver2.hypervault.tech.conf /etc/nginx/conf.d/resourceserver2.hypervault.tech.conf
sudo systemctl restart nginx