genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/deploy.sh

11 lines
340 B
Bash
Raw Normal View History

2017-05-17 21:33:23 +02:00
#!/bin/bash
host="HOST_FOR_$1"
port="PORT_FOR_$1"
remote="circleci@${!host}"
echo "deploying on: $remote"
scp -p $port bin/stock $remote:~/bin/stock;
rsync -e "ssh -p $port $host" -a webroot/ $remote:~/lib/stock/www;
rsync -e "ssh -p $port $host" -a contrib/ $remote:~/lib/stock/contrib;
ssh -p $port $remote sudo systemctl restart stock;