PecanProject/bety: BETYdb 5.3.0
- 1. University of Illinois
- 2. University of Arizona
- 3. National Center for Supercomputing Applications
- 4. Boston University
Description
Please read the steps below to upgrade your system. Not following these steps could break your instance of BETY.
Password encryptionThe previous versions of BETY would ignore the environment variable SECRET_KEY_BASE and use the default value defined in config/defaults.yml. If you have set SECRET_KEY_BASE and upgrade BETY you will not be able to login anymore!. It is best to remove SECRET_KEY_BASE if set and default back to the default SECRET_KEY_BASE.
- Log in to the server.
- cd to the Rails root directory.
- Run git pull to get the latest version of the master branch.
- Update any gems using bundle
- Run the migration in the new release with
bundle exec rake db:migrate RAILS_ENV=production - Restart the Rails server with
touch tmp/restart.txt
- Log in to the server
- cd to the directory with the docker-compose file
- update the version of bety (if you don't use latest)
- stop BETY
docker-compose rm --stop bety - download latest version
docker-compose pull bety - run migration
docker-compose run --rm bety migrate - start bety
docker-compose up -d bety
There is a change to the script/dump.bety.sh that will keep the creation/update times of the users in the database. This is needed for future work to speed up database synchronizations. If you use the script standalone, please copy latest script.
Complete list of changes Fixes- #696 : actually now uses environment variable SECRET_KEY_BASE. If this was set, unset otherwise you can not login to BETY.
- #551 : remove GUnload message from console on page change.
- #672 : Added activemodel-serializers-xml Gem to restore functionality of "original" API XML endpoints.
- #674 : Upgraded comma Gem to restore CSV file downloads.
- #699 : when dumping users created/updated is set to date of dump, now keeps original dates.
- use actual information in database for load and dump scripts.
- update doi links http://dx.doi.org --> https://doi.org
- fixed functions to explicitly add public. to function call and table reference. (this will require a migration)
- upgrade rake to 13.0.1 (dependbot fix)
- upgrade nokogiri to 1.10.8 (dependbot fix)
- script to add new users to bety
- dockerfile to dump database in docker image for faster restore of database.
- switched to github actions instead of Travis
- cronjob on github actions to create pecan/db docker image nightly, will safe also with year-weak (i.e 2020-15)
Notes
Files
PecanProject/bety-betydb_5.3.0.zip
Files
(12.8 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:4747f832a9d693f69dad8214ff155e91
|
12.8 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/PecanProject/bety/tree/betydb_5.3.0 (URL)
References
- LeBauer, D., Kooper, R., Mulrooney, P., Rohde, S., Wang, D., Long, S. P., & Dietze, M. C. (2018). BETYdb: a yield, trait, and ecosystem service database applied to secondāgeneration bioenergy feedstock production. GCB Bioenergy, 10(1), 61-71
- LeBauer, David, Michael Dietze, Rob Kooper, Steven Long, Patrick Mulrooney, Gareth Scott Rohde, Dan Wang (2010). Biofuel Ecophysiological Traits and Yields Database (BETYdb), Energy Biosciences Institute, University of Illinois at Urbana-Champaign. doi:10.13012/J8H41PB9