Merge branch 'main' of git.disroot.org:ace/hugo-demo

This commit is contained in:
Your Name 2023-05-02 01:58:04 +01:00
commit 4826ea6cd0
3 changed files with 8 additions and 2 deletions

View file

@ -23,6 +23,11 @@
search for git-bash from the start menu and open it
3. Add a name and email address (for identifying your commits)
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
#### Set up SSH key
1. Set up SSH key for connecting to the server

View file

@ -30,7 +30,7 @@ then
# via scp - this will not delete old files
echo "scp -r -P ${PORT} -o User=${USER} $DIR/* ${HOST}:${REMOTE_DIR}"
scp -r -P ${PORT} -o User=${USER} -o HostKeyAlgorithms=+ssh-rsa $DIR/* ${HOST}:${REMOTE_DIR} && git restore --staged . && git add public && git commit -m "deployed changes to server" && echo "Changes deployed to $HOST" || echo "No changes deployed to $HOST"
scp -r -P ${PORT} -o User=${USER} -o HostKeyAlgorithms=+ssh-rsa $DIR/* ${HOST}:${REMOTE_DIR} && echo "Deployment Successful" && git restore --staged . && git add public && git commit -m "deployed changes to $HOST" && echo "Deployed changes added to git" || echo "No changes made to the git repository"
# via rsync - this command will delete everything on the server that's not in the local build folder
# rsync -avz --delete "$DIR"/ ${USER}@${HOST}:~/${REMOTE_DIR} && git restore --staged . && git add public && git commit -m "deployed changes to server" && echo "Changes deployed to $HOST" || echo "No changes deployed to $HOST"

View file

@ -1,4 +1,5 @@
curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_windows-amd64.zip
unzip hugo_extended_0.111.3_windows-amd64.zip -d hugo
mv hugo/hugo.exe "/c/Program Files/Git/mingw64/bin"
rm -r hugo
rm -r hugo
rm hugo_extended_0.111.3_windows-amd64.zip