···11-name = "doodler"
11+name = "page"
22version = "1.0.0"
33-target = "javascript"
33+target = "erlang"
4455# Fill out these fields if you intend to generate HTML documentation or publish
66# your project to the Hex package manager.
···1313# For a full reference of all the available options, you can have a look at
1414# https://gleam.run/writing-gleam/gleam-toml/.
15151616-[javascript]
1717-runtime = "bun"
1818-1916[dependencies]
2017gleam_stdlib = ">= 0.44.0 and < 2.0.0"
2118lustre = ">= 5.3.5 and < 6.0.0"
1919+blogatto = ">= 5.1.1 and < 6.0.0"
2020+glaze_oat = ">= 3.0.0 and < 4.0.0"
22212322[dev-dependencies]
2423gleeunit = ">= 1.0.0 and < 2.0.0"
2525-lustre_dev_tools = ">= 2.1.3 and < 3.0.0"
+8-20
justfile
···11default:
22 @just --list
3344-# Run a dev server using lustre/dev start
55-dev:
66- gleam run -m lustre/dev start
7488-# Build the SPA
55+# Build
96build:
1010- gleam run -m lustre/dev build
1111-77+ gleam run
1281313-roll-back:
1414- # move copy from /srv/doodler/previous to /srv/doodler/
1515- ssh deploy-doodler@gitlab "cp /srv/doodler/previous/* /srv/doodler/"
1691717-# Deploy doodler to my server
1010+# Deploy to my server
1811deploy: build
1919- #!/bin/zsh
2020- ssh deploy-doodler@gitlab "
2121- # ignore errors since the following 2 steps would otherwise have issues
2222- set +e
2323- # create copy of previous version in /srv/doodler/previous
2424- cp /srv/doodler/* /srv/doodler/previous
2525- # remove previous version -- /srv/doodler/previous will be ignored
2626- rm /srv/doodler/*
1212+ #!/usr/bin/env zsh
1313+ ssh deploy-page@gitlab "
1414+ rm -r /srv/page/*
2715 "
28162929- # copy current version to /srv/doodler/
3030- scp ./dist/* deploy-doodler@gitlab:/srv/doodler
1717+ # copy current version to /srv/page/
1818+ scp -r ./dist/* deploy-page@gitlab:/srv/page
31193220