pyfedi/dev_notes.txt

35 lines
1,003 B
Text
Raw Permalink Normal View History

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 ***
2024-02-13 00:28:33 -08:00
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
2024-10-07 11:16:23 -07:00
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.