1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-09 08:42:47 +00:00
This commit is contained in:
2018-01-30 10:38:45 -06:00

View File

@@ -1,4 +1,11 @@
# this script is to copy the built project to a production server
scp -i prod_ssh_key -r ./_build root@<ip>:/home
scp -i prod_ssh_key ./run_prod.sh root@<ip>:/home
if [[ $# -eq 1 ]]; then
ssh -i prod_ssh_key root@10.1.96.4 "mkdir /home/$1";
scp -i prod_ssh_key -pr ./_build root@10.1.96.4:/home/$1/_build;
scp -i prod_ssh_key ./run_prod.sh root@10.1.96.4:/home/$1/run_prod.sh;
exit 0
fi
echo 'Please add version number as an argument'