No description
Find a file
2024-09-21 20:05:39 +05:30
.github feat: CI: configure and run conductor instance while testing 2022-12-15 01:01:59 +05:30
config chore: rename pages -> librepages 2022-12-19 06:32:51 +05:30
contrib feat: link to enough community ansible playbook 2022-04-19 02:33:21 +05:30
docs chore: rename pages -> librepages 2022-12-19 06:32:51 +05:30
migrations feat: s/gitea/forgejo/ 2022-12-28 16:08:24 +05:30
scripts fix: CI: build release profile bin and publish 2022-12-19 15:15:18 +05:30
src fix: isolate test db 2024-06-10 15:36:00 +05:30
static/cache/img/svg feat: add show and hide icons 2022-12-05 15:45:04 +05:30
templates feat: s/gitea/forgejo/ 2022-12-28 16:08:24 +05:30
tests/cases/contains-everything/toml feat: read configuration from repositories 2022-11-12 15:51:34 +05:30
utils/cache-bust Merge pull request 'fix(deps): update rust crate serde_json to v1.0.128' (#109) from renovate/serde_json-1.x-lockfile into master 2024-09-12 22:10:13 +05:30
.dockerignore feat: bin publisher docker img. Get bin from realaravinth/librepages 2022-12-19 13:34:29 +05:30
.gitignore feat: setup sass compilation 2022-09-16 17:41:11 +05:30
.woodpecker.yml fix: CI: start conductor service container 2024-06-10 15:05:15 +05:30
build.rs chore: apply clippy lints 2022-11-15 18:09:34 +05:30
Cargo.lock fix(deps): update rust crate clap to v4.5.18 2024-09-20 20:36:40 +00:00
Cargo.toml fix(deps): update rust crate git2 to 0.19.0 2024-06-14 01:07:18 +00:00
Dockerfile chore(deps): update node.js to v20.17.0 2024-08-21 22:06:38 +00:00
LICENSE.md init 2021-10-29 20:21:46 +05:30
Makefile fix: bulid with DATABASE_URL unset and apply migrations 2022-12-19 12:50:06 +05:30
package-lock.json chore(deps): update dependency sass to v1.79.3 2024-09-20 21:35:24 +00:00
package.json feat: setup sass compilation 2022-09-16 17:41:11 +05:30
README.md feat: add CI build status badge 2022-12-19 08:27:28 +05:30
renovate.json Add renovate.json 2024-06-03 03:02:07 +00:00
sqlx-data.json feat: s/gitea/forgejo/ 2022-12-28 16:08:24 +05:30

Pages

Auto-deploy static websites from git repositories

[![status-badge](https://ci.batsense.net/api/badges/LibrePages/librepages/status.svg)](https://ci.batsense.net/LibrePages/librepages)

Why?

SSHing into a server and performing a git pull is boring. I couldn't find any free(as in freedom) software for automating static website deploys like GitHub Pages or Netlify.

This is very minimal, all it does is a git fetch $branch but it works for me :)

Usage

  1. All configuration is done through ./config/default.toml(can be moved to /etc/static-pages/config.toml). Too add a website, make a similar entry:

    pages = [
    	{ branch = "gh-pages", repo = "https://github.com/realaravinth/realaravinth/", path ="/var/www/pages/realaravinth", secret = "mytopsecretsuperlongpassword123" },
    ]
    
  2. If pages is deployed at pages.example.com and you wish to deploy changes from gh-pages branch, you can do so with the following command:

     curl -v --location --request POST 'https://pages.example.com/api/v1/update' \
    --header 'Content-Type: application/json' \
    --data-raw "{
    	\"secret\": \"$token\",
    	\"branch\": \"gh-pages\"
    }"