Change yay hosting.

This commit is contained in:
Artem Sapegin 2013-04-25 17:47:17 +04:00
parent 184c550a31
commit 20a516f96a

View File

@ -144,9 +144,9 @@ ssh-add-host() {
# Upload current directory to special directory on my hosting # Upload current directory to special directory on my hosting
function yay() { function yay() {
server="locum" server="seal"
dir=`basename "$(pwd)"` dir=`basename "$(pwd)"`
remote="~/projects/yay/$dir" remote="~/sites/yay.sapegin.me/htdocs/$dir"
url="http://yay.sapegin.me/$dir/" url="http://yay.sapegin.me/$dir/"
tar cp --exclude '.git' --exclude 'node_modules' . | gzip | ssh $server "mkdir -p "$remote"; gzip -cd | tar x -C "$remote"" tar cp --exclude '.git' --exclude 'node_modules' . | gzip | ssh $server "mkdir -p "$remote"; gzip -cd | tar x -C "$remote""