Browse Source

feat: deploy script

Signed-off-by: QuentinN42 <quentin@lieumont.fr>
pull/1/head
QuentinN42 5 months ago
parent
commit
1e8c3d0f9f
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 1
      builder/templates/index.html
  2. 25
      deploy.sh

1
builder/templates/index.html

@ -10,6 +10,7 @@
crossorigin="anonymous"
/>
<title>{{ config.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=0.6" />
<link rel="icon" type="image/x-icon" href="{{ config.favicon }}" />
</head>

25
deploy.sh

@ -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…
Cancel
Save