mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
34 lines
1,003 B
Text
34 lines
1,003 B
Text
for celery, run this:
|
|
|
|
celery -A celery_worker.celery worker --loglevel=INFO
|
|
|
|
|
|
on prod web server, celery is managed by systemd: /etc/default/celeryd and /etc/systemd/system/celeryd.service
|
|
|
|
sudo systemctl stop celeryd
|
|
sudo systemctl restart celeryd or sudo service celeryd restart
|
|
|
|
*** check for celery-related problems by looking in /var/log/celery ***
|
|
|
|
for profiling:
|
|
use
|
|
python profile_app.py
|
|
instead of
|
|
flask run
|
|
|
|
|
|
|
|
translations:
|
|
|
|
See https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xiii-i18n-and-l10n-2018
|
|
|
|
to add a new language which can be worked on:
|
|
|
|
pybabel init -i messages.pot -d app/translations -l <language code>
|
|
|
|
after changes to the files in app/translations/* are mode, they need to be compiled
|
|
pybabel compile -d app/translations
|
|
|
|
|
|
sass is used to compile .scss files into .css files. https://sass-lang.com/dart-sass/. Get the latest version of the
|
|
command line app from https://github.com/sass/dart-sass/releases/ as old versions produce slightly different output.
|