<commit_before>gokku
=====

Gogs commit hook -> dokku deploy

Usage
-----

Build a docker image off of this repo. Next make a new repo for your 
configuration.

```Dockerfile
FROM cinemaquestria/gokku

ADD gokku.key /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
ADD known_hosts /root/.ssh/known_hosts

RUN mkdir -p /gokku/repo
```

Next you need to set your environment variables. As we are mainly on PonyChat, 
gokku is currently hardcoded to connect to `irc.ponychat.net`.

```Dockerfile
ENV BOT_CHANNEL commits      # An IRC channel name without the leading hash
ENV BOT_PASS <PASSWORD>  # NickServ credentials

# What to git pull from
ENV GOKKU_REPO <EMAIL>:cinemaquestria/site
# Where to git push to
ENV GOKKU_DOKKU_REMOTE <EMAIL>:cinemaquestria
```<commit_msg>Update README with deployment hint<commit_after>gokku
=====

Gogs commit hook -> dokku deploy

Usage
-----

Build a docker image off of this repo. Next make a new repo for your 
configuration.

```Dockerfile
FROM cinemaquestria/gokku

ADD gokku.key /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
ADD known_hosts /root/.ssh/known_hosts

RUN mkdir -p /gokku/repo
```

Next you need to set your environment variables. As we are mainly on PonyChat, 
gokku is currently hardcoded to connect to `irc.ponychat.net`.

```Dockerfile
ENV BOT_CHANNEL commits      # An IRC channel name without the leading hash
ENV BOT_PASS <PASSWORD>  # NickServ credentials

# What to git pull from
ENV GOKKU_REPO <EMAIL>:cinemaquestria/site
# Where to git push to
ENV GOKKU_DOKKU_REMOTE <EMAIL>:cinemaquestria
```

Now run this somewhere. We run this on the same server that hosts the site for 
convenience.
{'fraction_non_alphanumeric': 0.0809667673716012, 'fraction_numerical': 0.0036253776435045317, 'mean_word_length': 4.079754601226994, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2418450', 'n_tokens_mistral': 593, 'n_tokens_neox': 554, 'n_words': 211}