summaryrefslogtreecommitdiff
path: root/README.md
blob: e9c112d2dbe46eab229b25cdd5975cee1ad59eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
This is the code for generating my website (prefetch.eu) using Jekyll.

To try it out, make sure you have `ruby`, `gem` and `bundler` installed.
I prefer to download the former two from my distro's package manager,
and then to use `gem` to install `bundler`; e.g. on Arch Linux run:

```sh
$ sudo pacman -S ruby rubygems
$ gem install bundler
```

Then in this directory, run the following commands to get Jekyll and
all its extensions needed by this website as listed in the `Gemfile`:

```sh
$ bundle config set --local path .bundle
$ bundle config build.posix-spawn --with-cflags="-Wno-incompatible-pointer-types"
$ bundle install
```

First try to run `bundle install` without changing any `CFLAGS`,
it used to work like that, but not anymore as of mid-2024.

Now you should be able to run a local development version with:

```sh
$ make serve
```

To build and deploy the release version, install `rsync` and run:

```sh
$ make build
$ make compress
$ make deploy HOST=user@example.com PORT=22
```