You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
655 B

5 years ago
#!/bin/bash
5 years ago
#BASE="http://www.iolovolio.com/"
BASE="/"
5 years ago
BASE_PARSED=$(echo $BASE | sed 's/\//\\\//g')
4 years ago
yarn prod
5 years ago
cd public
5 years ago
for f in *.php
5 years ago
do
sed -i "s/href\=\"\//href\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\//src\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\.\//src\=\"$BASE_PARSED/g" "$f"
done
cd ..
4 years ago
rsync -avz --delete --exclude '/cgi-bin/conn.conn' --exclude '/admin/.htaccess' --exclude '/api' -e "ssh -i ./auth/marketmind.pem" ./public/* ubuntu@18.194.83.82:/var/www/iolovolio.com/
rsync -avz --delete --exclude '/config.php' --exclude '/vendor' -e "ssh -i ./auth/marketmind.pem" ./api/* ubuntu@18.194.83.82:/var/www/iolovolio.com/api/
5 years ago