Tweak to the deploy script to change directory before trying to pull from gitea.
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
|
echo "Changing to site directory."
|
||||||
|
cd /home/pi/quickstart
|
||||||
echo "Pulling latest from git repo."
|
echo "Pulling latest from git repo."
|
||||||
git checkout master
|
git checkout master
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
echo "Running hugo and copying the public directory to the /srv/http directory."
|
echo "Running hugo and copying the public directory to the /srv/http directory."
|
||||||
|
|
||||||
cd /home/pi/quickstart
|
|
||||||
hugo
|
hugo
|
||||||
|
|
||||||
cp -r /home/pi/quickstart/public/. /srv/http
|
cp -r /home/pi/quickstart/public/. /srv/http
|
||||||
|
|||||||
Reference in New Issue
Block a user