2 changed files with 26 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
#!/bin/bash |
|||
# ARGUMENTS: |
|||
# $1: Website location |
|||
|
|||
touch /tmp/site_gen_logs |
|||
tail -f /tmp/site_gen_logs | logger -t "rezelator" -s -p "error" & |
|||
|
|||
( |
|||
if [ -z "$1" ]; |
|||
then |
|||
echo "No location provided." >&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
cd $(dirname $0) |
|||
|
|||
echo "Generating website..." |
|||
make |
|||
echo "Deploying website to $1" |
|||
rm -rf $1 |
|||
cp build -r $1 |
|||
echo "Done !" |
|||
) 2>/tmp/site_gen_logs | logger -t "rezelator" -s -p "info" |
|||
|
|||
rm /tmp/site_gen_logs |
Loading…
Reference in new issue