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.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#BASE="http://www.iolovolio.com/"
|
|
|
|
BASE="/"
|
|
|
|
|
|
|
|
BASE_PARSED=$(echo $BASE | sed 's/\//\\\//g')
|
|
|
|
yarn prod
|
|
|
|
cd public
|
|
|
|
for f in *.php
|
|
|
|
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 ..
|
|
|
|
|
|
|
|
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/
|
|
|
|
|