pictuga / morss

Get full text RSS feeds
https://morss.it/
GNU Affero General Public License v3.0
621 stars 75 forks source link

[Help] How to install morss with its web interface on a debian server? #94

Open Binnette opened 2 years ago

Binnette commented 2 years ago

Hi @pictuga and thank a lot for your software. I really want to install it on my Debian server.

I read the readme file multiple times, but still I don't figure it how to install morrs. Maybe the readme is not enough "noob" friendly

So If I want to install morss + its web interface. What are the steps? I didn't understand if I should install the python package via pip? Or If I should install the package "morss[full]" via pip? morss[full] contains the web ui? After that how should I run morss ? Should I use gunicorn? I don't know gunicorn, so should I install gunicorn as a service? Because I want the web ui to be available even if I reboot the server. Should I not user gunicorn ans use something else?

I am sorry but as I noob, the readme is confusing for me. And I still don't get what should I do to install morss + web ui on my server.

Thank for your excellent software. Hope you can help a noob.

pictuga commented 2 years ago

Hi! The best option probably is pip full install + gunicorn. You've got a point, the readme might be confusing (too many options). I'll indicate which options are "recommended" to guide people.

As for the reboot friendly option, this would require to register morss has a (sysemd) service. No such file is currently provided so you'll have to write one for the time being

Todo

loposk commented 2 years ago

Hi! Try this:

[Unit]
Description=morss
After=network.target
Documentation=https://github.com/pictuga/morss/blob/master/README.md

[Service]
Type=simple
User=www-data
Environment=DEBUG=0
Environment=CACHE=diskcache
Environment=CACHE_SIZE=1073741824 # 1GiB
ExecStart=/usr/local/bin/morss-helper
ExecStop=/usr/bin/pkill -15 'gunicorn'
KillMode=mixed
PrivateTmp=true
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target