Research apps for Gapfinder
- Clone this repository to /srv/gapfindertools
- Add a really long secret key to /etc/profile, e.g.: echo 'export DJANGO_SECRET_KEY="#)zbti_w!for_jack0xpefbi=&c@tsb2oua4j$e!djyhy&x9g7"'' | sudo tee --append /etc/profile source /etc/profile
- Run /srv/gapfindertools/gapfindertools/labs_setup.sh
- After each update you may want to collect static files depending on
whether you've changed CSS and JS files:
- cd /srv/gapfindertools
- sudo venv/bin/python manage.py collectstatic --settings=gapfindertools.settings_prod
sudo npm install -g rtlcss
- For each style sheet, generate a new one for RTL languages like so:
rtlcss base.css base_rtl.css
- Note to only change non-RTL stylesheets and generate RTL ones from those.
- cd sectionalignment
- django-admin makemessages -l fr # or some other language code
- Edit sectionalignment/locale/fr/LC_MESSAGES/django.po
- django-admin compilemessages
- Edit files in sectionalignment/locale/...
- cd sectionalignment
- django-admin compilemessages
- Auto reload UWSGI after pulling new changes to the production server.