Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 970 Bytes

README.md

File metadata and controls

54 lines (42 loc) · 970 Bytes

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.

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