-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_site.sh
executable file
·30 lines (24 loc) · 946 Bytes
/
gen_site.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# @ Copyright (c) Michael Leachim @
# @ You can find additional information regarding licensing of this work in LICENSE.md @
# @ You must not remove this notice, or any other, from this software. @
# @ All rights reserved. @
# @@@@@@ At 2018-11-10 19:16 <mklimoff222@gmail.com> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
cd $(dirname "$0"); # cd to script dir
echo "BEGINNING UPLOAD PROCEDURE"
wget \
--recursive \
--mirror \
--page-requisites \
--html-extension \
--restrict-file-names=windows \
--no-parent \
127.0.0.1:3000;
rm -r ./out/*
mv 127.0.0.1+3000/* out/;
rm -r 127.0.0.1+3000/;
cd out;
rclone sync . s3:wireframecss.michaelleahcim.com --progress;
cd ../;
echo "DONE;"