Some Firefox users may need to log in more than once to log in. It's a known Firefox bug. Check "keep me logged in," it might help.

Es posible que algunxs usuarixs de Firefox tengan que conectarse más de una vez para iniciar sesión. Es un error conocido de Firefox. Marca "keep me logged in" (mantenerme conectado), puede ayudar.


Tech Documentation: Difference between revisions

From Bike Collectives Wiki
No edit summary
Line 20: Line 20:


[[User:PositiveSpin|Jonathan Rosenbaum]] and [[User:DarinWick|Darin April Wick]] have shell accounts; contact them if you need access.  
[[User:PositiveSpin|Jonathan Rosenbaum]] and [[User:DarinWick|Darin April Wick]] have shell accounts; contact them if you need access.  
===MediaWiki===
* Settings for Mediawiki are in /home/bikebike/docker/bikecollectives/LocalSettings.php
* Extensions are in the container at /var/www/html/w/extensions
* I think to make changes happen you have to rebuild and restart the container with <code>docker compose build</code> & <code>docker compose up -d</code>


=== URL Rewrites ===
=== URL Rewrites ===

Revision as of 18:52, 26 June 2023

Tech History - old updates from the OCF tech page, etc.

bikecollectives.org

As of 2023...

Hosted on: RackNerd

Services hosted include:

  • bikecollectives.org front page
  • Bike Collectives Wiki (MediaWiki)
  • lists.bikecollectives.org (MailMan3 email lists, including The ThinkTank)
  • RoundCube email for tech administrative mail (e.g. DMARC reports)
  • restik backup
  • PassBolt password manager for administrative logins
  • some other things

All services are running in Docker containers, with nginx-proxy routing requests.

Jonathan Rosenbaum and Darin April Wick have shell accounts; contact them if you need access.

MediaWiki

  • Settings for Mediawiki are in /home/bikebike/docker/bikecollectives/LocalSettings.php
  • Extensions are in the container at /var/www/html/w/extensions
  • I think to make changes happen you have to rebuild and restart the container with docker compose build & docker compose up -d

URL Rewrites

A few notes from adding URL rewrites to the nginx config in April 2023 so that bikecollectives.org/en-es and bikecollectives.org/es-en both redirect to the Language Exchange page for easier posting on social media, etc.

  • log in as bikebike (or su to bikebike)
  • edit ~/docker/bikecollectives/default.conf
  • I used rewrite directives in the relevant server sections, but I think return directives would also work.
  • docker compose build & docker compose up -d

bikebike.org

As of 2023...

bikebike.org hosts a Ruby on Rails application that helps with registration for Bike!Bike! conferences. It's old and fragile and we've duct-taped some stuff on to keep it going and make it work for Bike!Bike! Everywhere! virtual conferences, but it is still the best thing we have for the purpose. It has the excellent feature of being trilingual (EN/ES/FR) by design on the frontend, though the backend administrative interface is English-only.

Here are some notes on working with the existing bikebike.org: https://www.bikecollectives.org/wiki/Tech_Meeting_2022.07.16

Bumbleberry & CSS issues

Bumbleberry is a chunk of code (Ruby Module?) that tries to generate CSS suitable for whatever browser the viewer is using. It was a great idea ten years ago, but not so necessary now, and it needs to be manually updated every time a new browser version is released. Ideally we'd put this on a cron job or just switch to static CSS, but for now, when it breaks, it can be fixed by logging into a shell account on bikebike.org and running...

truncate nohup.out -s 0 && nohup sh -c 'cd /home/rails && RAILS_ENV=production bundle exec rake bumbleberry:update && RAILS_ENV=production bundle exec rake assets:precompile && RAILS_ENV=production bundle exec rake assets:clean && kill `cat /home/unicorn/production.pid`; RAILS_ENV=production bundle exec unicorn_rails -E production -D -c /home/rails/config/unicorn.rb && kill `cat /home/unicorn/sidekiq_production.pid`; bundle exec sidekiq -d -C config/sidekiq_production.yml -e production -c 25' &

As of 2023.05.02, the above is now scheduled to run daily at midnight (Pacific Time, I think?). It is a cron job in root's crontab.