This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-linkding/README.md

35 lines
738 B
Markdown
Raw Permalink Normal View History

2021-11-11 10:42:08 +00:00
# linkding
2021-11-15 13:23:45 +00:00
Pyinfra that deploy linkding un-dockerized on a Debian 11 LXD container.
# Deployment
```
# lxc launch images:debian/11 <name>
# lxec exec <name> bash
# apt update && apt install python3-pip git
# pip install pyinfra
# git clone https://git.benpro.fr/pyinfra/linkding.git
# cd linkding
# pyinfra inventories/production.py deploy.py
```
## Upgrade
Run `remove.py` then `deploy.py`.
```
# pyinfra inventories/production.py remove.py
# pyinfra inventories/production.py deploy.py
```
2021-11-15 13:45:06 +00:00
# Run linkding command
2021-11-15 13:23:45 +00:00
2021-11-15 13:45:06 +00:00
A systemd-run wrapper is installed and you can use it via `/usr/local/bin/linkding`.
2021-11-15 13:23:45 +00:00
2021-11-20 02:38:32 +00:00
Create a superuser:
2021-11-15 13:23:45 +00:00
```
2021-11-20 02:38:32 +00:00
# /usr/local/bin/linkding python manage.py createsuperuser --username=jdoe --email=jdoe@example.com
2021-11-15 13:23:45 +00:00
```