fix rsync bug, and add a local dev-deploy script
This commit is contained in:
parent
dccad1e2f8
commit
cd15ba9bf0
21
dev-deploy
Executable file
21
dev-deploy
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "----------------------"
|
||||||
|
echo "Rsync static assets..."
|
||||||
|
echo "----------------------"
|
||||||
|
rsync --super -ahr -e ssh ./css/*.css gmgauthier@plato:/var/www/oldcomputernerd.com/css/
|
||||||
|
rsync --super -ahr -e ssh ./font/* gmgauthier@plato:/var/www/oldcomputernerd.com/font/
|
||||||
|
rsync --super -ahr -e ssh ./img/* gmgauthier@plato:/var/www/oldcomputernerd.com/img/
|
||||||
|
|
||||||
|
echo "-------------------"
|
||||||
|
echo "Rsync content files"
|
||||||
|
echo "-------------------"
|
||||||
|
rsync --super -ahr -e ssh ./txt/* gmgauthier@plato:/var/www/oldcomputernerd.com/txt/
|
||||||
|
rsync --super -ahr -e ssh ./htm/* gmgauthier@plato:/var/www/oldcomputernerd.com/htm/
|
||||||
|
rsync --super -ahr -e ssh ./md/* gmgauthier@plato:/var/www/oldcomputernerd.com/md/
|
||||||
|
|
||||||
|
echo "-------------------"
|
||||||
|
echo "Rsync root files"
|
||||||
|
echo "-------------------"
|
||||||
|
rsync --super -ah -e ssh ./*.html gmgauthier@plato:/var/www/oldcomputernerd.com
|
||||||
|
rsync --super -ah -e ssh ./*.md gmgauthier@plato:/var/www/oldcomputernerd.com
|
12
publish
12
publish
@ -6,16 +6,16 @@ git add .;git commit -m"$@";git push -u origin master
|
|||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
echo "Rsync static assets..."
|
echo "Rsync static assets..."
|
||||||
echo "----------------------"
|
echo "----------------------"
|
||||||
rsync --super -avh -e ssh ./css/* gmgauthier@socrates:/var/www/oldcomputernerd.com/css
|
rsync --super -avhr -e ssh ./css/*.css gmgauthier@socrates:/var/www/oldcomputernerd.com/css/
|
||||||
rsync --super -avh -e ssh ./font/* gmgauthier@socrates:/var/www/oldcomputernerd.com/font
|
rsync --super -avhr -e ssh ./font/* gmgauthier@socrates:/var/www/oldcomputernerd.com/font/
|
||||||
rsync --super -avh -e ssh ./img/* gmgauthier@socrates:/var/www/oldcomputernerd.com/img
|
rsync --super -avhr -e ssh ./img/* gmgauthier@socrates:/var/www/oldcomputernerd.com/img/
|
||||||
|
|
||||||
echo "-------------------"
|
echo "-------------------"
|
||||||
echo "Rsync content files"
|
echo "Rsync content files"
|
||||||
echo "-------------------"
|
echo "-------------------"
|
||||||
rsync --super -avhr -e ssh ./txt/* gmgauthier@socrates:/var/www/oldcomputernerd.com/txt
|
rsync --super -avhr -e ssh ./txt/* gmgauthier@socrates:/var/www/oldcomputernerd.com/txt/
|
||||||
rsync --super -avhr -e ssh ./htm/* gmgauthier@socrates:/var/www/oldcomputernerd.com/htm
|
rsync --super -avhr -e ssh ./htm/* gmgauthier@socrates:/var/www/oldcomputernerd.com/htm/
|
||||||
rsync --super -avhr -e ssh ./md/* gmgauthier@socrates:/var/www/oldcomputernerd.com/md
|
rsync --super -avhr -e ssh ./md/* gmgauthier@socrates:/var/www/oldcomputernerd.com/md/
|
||||||
|
|
||||||
echo "-------------------"
|
echo "-------------------"
|
||||||
echo "Rsync root files"
|
echo "Rsync root files"
|
||||||
|
Loading…
Reference in New Issue
Block a user