Go to file
2023-05-02 16:42:40 +01:00
archetypes initial template 2023-04-28 16:17:09 +01:00
content edit test blog post 2023-05-02 01:59:29 +01:00
i18n Add some modifications to the home page 2023-04-28 18:05:10 +01:00
install/hugo modify hugo install script to run without admin permissions 2023-05-02 16:28:59 +01:00
public deployed changes to server 2023-05-02 01:49:32 +01:00
resources/_gen/assets/css/ananke/css Replace ananke theme with patched version 2023-04-28 21:32:37 +01:00
themes Replace ananke theme with patched version 2023-04-28 21:32:37 +01:00
.gitignore ignore .hugo_build.lock file 2023-04-28 16:19:17 +01:00
.gitmodules Replace ananke theme with patched version 2023-04-28 21:32:37 +01:00
build.sh Add more development scripts, update deploy script 2023-04-29 00:45:56 +01:00
check.sh add more output to remote repository checking script 2023-04-28 23:21:23 +01:00
config.toml switch out baseURL 2023-05-02 16:42:40 +01:00
deploy.sh modify user output in deploy script 2023-05-02 01:57:23 +01:00
pull.sh Add script for pulling changes 2023-04-28 22:01:30 +01:00
push.sh switch to 1984 for deployment 2023-05-02 00:44:06 +01:00
README.md tidy up README 2023-05-02 16:42:12 +01:00
setup.sh swap out ssh remote path for http path 2023-05-02 16:41:44 +01:00
test.sh Add more development scripts, update deploy script 2023-04-29 00:45:56 +01:00

Setup notes

Setup

Required Software

  • bash terminal
  • hugo
  • ssh
  • git
  • rsync

Windows setup

Install and run git-bash

  1. Download and install Git for Windows

    This can be downloaded from https://git-scm.com/download/win

    Make sure to install "git-bash" during the setup process"

  2. Open git-bash

    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

    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    
  2. Copy your public key and add it to the Git repository account

    To view the public key, type the following

    cat ~/.ssh/id_rsa.pub
    

    Then go the following page to add this output

    https://git.disroot.org/user/settings/keys

Copy and Install the Project

  1. Clone the repository

    mkdir project-folder
    cd project-folder
    git clone --recursive https://git.disroot.org/ace/hugo-demo.git
    cd hugo-demo
    
  2. Install Hugo

    ./install/hugo/git-bash.sh
    
  3. Run setup script

    ./setup.sh
    

Workflow

Start local test server

./test.sh

Push changes to remote git repositories

./push.sh

Build changes locally

./build.sh

Build and deploy changes

./deploy.sh

Check remote servers for changes

./check.sh

Pull changes

./pull.sh