private member portal for churches, built with Ruby on Rails
OneBody now looks for the X-Forwarded-Proto
header to determine if the connection is secure. Your existing nginx config will need proxy_set_header X-Forwarded-Proto $scheme;
added.
The default nginx config now sets client_max_body_size 80m;
to match increased document sizes of 75mb.
Make both of these changes to your nginx config (/etc/nginx/sites-available/onebody
) so that it looks like this:
upstream onebody {
# -snip-
}
server {
listen 80;
client_max_body_size 80m; # <---- change this line to 80m
location / {
proxy_pass http://onebody;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; # <---- add this line
}
}
Be sure to restart nginx with systemctl restart nginx
The encoding used for string/text columns in the database has changed. The migration to update the encoding can take quite awhile, especially if you have a lot of data in your database. Also be sure to make a backup of your database (see https://github.com/churchio/onebody/wiki/Backups for help).
Imports were not being properly scoped by site id before, and now they are. You will need to manually fix any imports to point to the proper site. For most people, the following should work:
onebody console # or rails console
[1] pry(main)> Import.unscoped.update_all('site_id = 1')
SQL (0.7ms) UPDATE `imports` SET site_id = 1
=> 23
[2] pry(main)> exit
See the Installation wiki page.
We've changed back to using bundle install --deployment
(sorry).
This is the first version that started using bundle install
instead of bundle install --deployment
.
To make this work, rm -rf /var/www/onebody/vendor/bundle
and then run bundle install
again so Rails can find the gems.
email_host
Set your "Default Country" in the admin dashboard Settings screen.
Run the following rake task to set your country on all existing family records:
RAILS_ENV=production bundle exec rake onebody:set_country
It's finally here! This release represents over a year of work and a major overhaul to the whole system. You can get an intro to OneBody at our site church.io and lots more screenshots here.