<commit_before># Configure new server with SSH key
Each key can be added to a new server.

In the *example* below, the username is `root` and the server IP is `123.456.789.000`.

You will need to generate key wth a proper passphrase: 
```
ssh-keygen -t rsa -b 4096 -C "<EMAIL>"
```

You can now login using 
```
ssh root@123.456.789.000
```

## Logging in There are multiple ssh keys defined on your system
```
ssh -i ~/.ssh/id_rsa_hetz.pub -o IdentitiesOnly=yes root@192.168.3.11
```

# Install dokku on server
https://dokku.com/docs/getting-started/installation/
APP url: http://<app-name>.gerilife

# Deploy GeriLife 
## Enable MongoDB
```
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
```

```
dokku mongo:create mongod-gerilife
```

## Create GeriLife app
```
dokku apps:create meteor-gerilife
```

## Link GeriLife to MongoDB
```
dokku mongo:link mongod-gerilife meteor-gerilife
```

## Configure GeriLife with Buildpack
Check the current GeriLife configuration:
```
dokku config:show meteor-gerilife
```

Set Buildpack configuration. Make sure to update your `ROOT_URL`.
```
dokku config:set meteor-gerilife BUILDPACK_URL=https://github.com/AdmitHub/meteor-buildpack-horse.git ROOT_URL=http://123.456.789.000 METEOR_SETTINGS="{\"public\": {}}"
```

## Local configuration
```
cat ~/.ssh/id_rsa.pub | ssh root@123.456.789.000 sshcommand acl-add dokku deploy
```

## Set up remote Dokku repository
```
git remote add dokku dokku@192.168.3.11:meteor-gerilife
```

### Push changes to remote Dokku repository
```
git push dokku master
```
<commit_msg>Update SSH public key remote configuration instructions<commit_after># Configure new server with SSH key
Each key can be added to a new server.

In the *example* below, the username is `root` and the server IP is `123.456.789.000`.

You will need to generate key wth a proper passphrase: 
```
ssh-keygen -t rsa -b 4096 -C "<EMAIL>"
```

You can now login using 
```
ssh root@123.456.789.000
```

## Logging in There are multiple ssh keys defined on your system
```
ssh -i ~/.ssh/id_rsa_hetz.pub -o IdentitiesOnly=yes root@192.168.3.11
```

# Install dokku on server
https://dokku.com/docs/getting-started/installation/
APP url: http://<app-name>.gerilife

# Deploy GeriLife 
## Enable MongoDB
```
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
```

```
dokku mongo:create mongod-gerilife
```

## Create GeriLife app
```
dokku apps:create meteor-gerilife
```

## Link GeriLife to MongoDB
```
dokku mongo:link mongod-gerilife meteor-gerilife
```

## Configure GeriLife with Buildpack
Check the current GeriLife configuration:
```
dokku config:show meteor-gerilife
```

Set Buildpack configuration. Make sure to update your `ROOT_URL`.
```
dokku config:set meteor-gerilife BUILDPACK_URL=https://github.com/AdmitHub/meteor-buildpack-horse.git ROOT_URL=http://123.456.789.000 METEOR_SETTINGS="{\"public\": {}}"
```

## Local configuration
Configure your public key on the remote Dokku instance, to allow deploying from local computer. Make sure to replace the server IP in the following command.

```
cat ~/.ssh/id_rsa.pub | ssh root@123.456.789.000 sshcommand acl-add dokku deploy
```

## Set up remote Dokku repository
```
git remote add dokku dokku@192.168.3.11:meteor-gerilife
```

### Push changes to remote Dokku repository
```
git push dokku master
```

{'fraction_non_alphanumeric': 0.1317668054729328, 'fraction_numerical': 0.04164187983343248, 'mean_word_length': 4.459415584415584, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3054493', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1170, 'n_words': 356}