Balencemod.TF Websiet

nodejs overhall

Tools

how we keep hold of Jekyll

Styling (bmod.css)

Cache

Setting Up

First install Node version manager and then setup Node

nvm use
node i

on nix

if you are on nix first run nix develop to enter a shell enviroment where you have node commands. then run npm install to setup the node_modules folder, and then exit out of the nix shell. and then you should beable to run nix run .#bmod-dev

development

npm run dev

production

npm start

webserver

Install

  1. clone
git clone https://gitlab.com/balancemod/main-site.git /tmp/nixconfig
  1. partition disk
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/nixconfig/src/disko.nix --arg device /dev/sda
  1. install nixos
sudo nixos-install --root /mnt --flake gitlab:balancemod/main-site

Update

sudo nixos-rebuild switch --flake gitlab:balancemod/main-site

gitlab runner setup

# node - /etc/gitlab-runner/blutsauger-node.env
CI_SERVER_URL=https://gitlab.com
CI_SERVER_TOKEN=TOKEN_HERE


# nix - /etc/gitlab-runner/blutsauger-nix.env
CI_SERVER_URL=https://gitlab.com
CI_SERVER_TOKEN=TOKEN_HERE

Todo

moved to: !224

permalink notes

Jekyll

jekyll overall setup by tumble

Setting Up

First install Ruby Version Manager or Ruble 2.7.5 and then setup Ruby

rvm use
gem install bundle
bundle install

notes

data

11ty =. jekyll

there is no site. also no include.

Running

bundle exec jekyll server -w --config _config.yml,_config-dev.yml

NO

not-quite-static

FOSSA Status

for when a static site generator feels like a pain and you dont want to write any php only html and a bit of json and or yaml

License

FOSSA Status