mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #96] How do you auto start or run as a service? #75
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukyjay on GitHub (Aug 22, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/96
Hi
I can't find any documentation on how to auto-start or run this software as a service in my Ubuntu 20.04 LXC container (under proxmox).
Is there any information on this?
Regards
Jayden
@ciur commented on GitHub (Aug 22, 2020):
Hi @lukyjay,
Are you looking for systemd unit files (or maybe deploy configs for nginx / apache) ?
@lukyjay commented on GitHub (Aug 23, 2020):
Hi @ciur
Sorry for the poor explanation. I'll describe my problem below.
I have installed Papermerge via the 'short version' Documentation: https://papermerge.readthedocs.io/en/latest/setup/manual_way.html#short-version
To start papermerge I need to run two terminals with:
$ ./manage.py runserver <IP>:<PORT>and
$ ./manage.py workerBut I did not know how to do this when the Proxmox LXC (container) starts.
I've managed to solve this by creating and enabling two service files:
papermerge-server.service:
papermerge-worker.service:
The documentation is a bit confusing since there are so many steps spanning multiple pages and it's not clear what you need to do to install this software within a debian/ubuntu server container. I hope the above information helps :)
@ciur commented on GitHub (Aug 23, 2020):
@lukyjay, there is no documentation yet about how to configure as papermerge system service 😁
Do you mind if I use your systemd units as example (obviously I will rename user/group names) ?
I will expand with more details, but systemd units you provided here are very good starting point 👍
@lukyjay commented on GitHub (Aug 23, 2020):
Of course! I just edited a Sonarr service file to make these.
It'd be great if one command could manage both the worker and the webserver. This would be easier for service files, bash scripts, application health monitoring, etc. I tried to write a bash script for this but I couldn't get it to work (never used python venv before)
@dohlin commented on GitHub (Aug 24, 2020):
Just FYI - assuming this was noticed but the "papermerge-worker.service:" and "papermerge-server.service:" in the systemd config example post above seem to be reversed :)
@ciur commented on GitHub (Aug 24, 2020):
right!
@dohlin, this ticket is continuation of your issue #75. Once you installed manually and ./manage.py runserver + manage.py worker commands worked - next level is to configuring Papermerge to run as service. Service - usually assumes that application in production mode (DEBUG=False). I will paste here URL when documentation will be updated.
@lukyjay commented on GitHub (Aug 24, 2020):
Only in my GitHub comment 😉
My instance is giving me an error regarding debug mode being enabled. Can this be disabled via a setting in the conf file?
@dohlin commented on GitHub (Aug 24, 2020):
You can set debug = false in settings.py on the config folder, but this seems to break the login page, at least on Chrome.
@ciur commented on GitHub (Aug 25, 2020):
Hi guys!
this is documentation page you were looking for.
It is work in progress.
There I document systemd service examples for worker and main app. Server configurations for apache and nginx.