-
Notifications
You must be signed in to change notification settings - Fork 0
Install and Updates
#Update
##Production
Enable a "we're offline right now page" on a separate webserver to respond to https://www.health-eheartstudy.org
Take real production website offline.
Backup current redcap db and put into SQLDumps dir
Copy sql upgrade script from dev to production
scp -P2200 ~/redcap_upgradeSQL/redcap5.2.3_upgrade.sql [email protected]:~/redcap_upgradeSQL/redcap5.2.3.sql
Run upgrade script
mysql -uredcap -predcap redcap < ~/webdocs/redcap_upgradeSQL/redcap5.2.3.sql
Get latest redcap code.
git clone 'https://github.com/UCSF-DMG/redcap5.2.3.git'
Backup current redcap web directory
cp -R ~/redcap ~/redcap4.15.2
Remove old redcap
rm -rf ~/redcap
Rename new redcap
mv ~/redcap5.2.3 ~/redcap
Check configuration
https://redcap.health-eheartstudy.org/redcap_v5.2.3/upgrade.php
https://redcap.health-eheartstudy.org/redcap_v5.2.3/Test/index.php
https://redcap.health-eheartstudy.org/redcap_v5.2.3/ControlCenter/index.php
Ignore crontab error
Copy over edocs from prior production code. edocs contains images and audio.
cp -R ~/redcap4.15.2/edocs ~/recap/edocs
Redcap update is done!
Make sure heh production is also up to date
Get the latest heh production branch from github
Do migrations if needed
$RAILS_ENV=development rake db:migrate
Restart heh passenger/phusion application server
$touch ~/HeH/tmp/restart.txt