Create a website from a json.
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.
 
 
 
 
 

25 lines
470 B

#!/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