1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-09 00:42:47 +00:00
Files
classic-wow-forums/copy_build_prod.sh.template
2018-01-29 23:10:16 +00:00

12 lines
344 B
Plaintext
Executable File

# this script is to copy the built project to a production server
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'