Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nickbradley/sh-insight

Get insights into your shell usage.
https://github.com/nickbradley/sh-insight

Last synced: 3 days ago
JSON representation

Get insights into your shell usage.

Awesome Lists containing this project

README

        

# sh-insight

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Run your unit tests
```
yarn test:unit
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

## To deploy
Make sure the data directory exists.
```
mkdir -p /var/opt/sh-insight/data/uploads
```

Note that we need to use host networking due to firewall shenanigans.

```
docker build --tag sh-insight .
podman create --name sh-insight --network host --volume /var/opt/sh-insight/data:/data:Z --env-file /opt/sh-insight/.env sh-insight
cd /etc/systemd/system
podman generate systemd --name --files sh-insight
# Only need next line if you re-create the container
systemctl daemon-reload
systemctl enable --now container-sh-insight.service
```

## To manage
```
systemctl stop container-sh-insight
```