You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, it uses the UF CTSI production data for hook activation. To change this, specify an alternative configuration by exporting these 3 variables:
36
+
37
+
REDCAP_ROOT - the full path to the Apache document root of your redcap server
38
+
REDCAP_HOOKS - the full path the to hooks folder under $REDCAP_ROOT
39
+
HOOKS_CONFIGURATION - the name of the directory ./hooks/\<INSTANCE_NAME\> that has the correct data.csv
40
+
41
+
e.g.
42
+
43
+
export REDCAP_ROOT=/var/https/redcap
44
+
export REDCAP_HOOKS=$REDCAP_ROOT/hooks
45
+
export HOOKS_CONFIGURATION=redcap.ctsi.ufl.edu
36
46
37
47
38
48
## Activate the hooking mechanism
39
49
40
50
REDCap requires the hooking mechanism be activated in the Control Center.
41
51
This is a system-wide setting. The REDCap hooking mechanism must be activated
42
-
by setting the Control Center -> General Configuration -> REDCap Hooks to
43
-
'/var/https/redcap/hooks/redcap_hooks.php'
52
+
by setting the Control Center -> General Configuration -> REDCap Hooks to the path to the redcap\_hooks.php file deployed by this repo. For UF CTSI, this path is _/var/https/redcap/hooks/redcap\_hooks.php_
Copy file name to clipboardExpand all lines: README.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
This repo documents the scripts and tools used by CTS-IT for deployments and
5
+
This repo documents the scripts and tools used by CTS-IT for deployments and
6
6
upgrades to the CTSI REDCap staging and production instances. This repo
7
7
includes a Vagrant VM on which these tools can be developed and tested.
8
8
@@ -13,10 +13,29 @@ production and staging instances of REDCap at the CTSI.
13
13
## Requirements
14
14
15
15
A user of these tools will need to download and provide their own REDCap bits,
16
-
downloaded from Vanderbilt. This REDCap .zip should be placed in the /vagrant folder.
16
+
downloaded from Vanderbilt. This REDCap .zip should be placed in the root folder.
17
17
It should not be renamed.
18
18
19
-
This VM requires that Vagrant and VirtualBox be installed on the host system.
19
+
This VM requires that Vagrant, VirtualBox and the vagrant-hostsupdater plugin be installed on the host system.
20
+
21
+
See [Creating the Test VM With Vagrant](docs/creating_the_test_vm_with_vagrant.rst) for details on how to mee those requirements.
22
+
23
+
24
+
## Using the Development environment
25
+
26
+
To with the above requirements met, start the VM with the command
27
+
28
+
vagrant up
29
+
30
+
After about two minutes, the VM should be accessible at [http://redcap.dev/redcap/](http://redcap.dev/redcap/) and at [https://redcap.dev/redcap/](https://redcap.dev/redcap/)
31
+
32
+
33
+
## Hook and Plugin deployment
34
+
35
+
CTSI REDCap Hooks and Plugins are deployed using the script
36
+
deploy_extensions.sh in this repo. This repo also contains the data files
37
+
need to configure hook deployment for the CTSI REDCap instances. See [Hook
38
+
Deployment ](README-hooks.md) for usage instructions and details.
20
39
21
40
22
41
## REDCap upgrade
@@ -31,18 +50,20 @@ ToDo: Convert steps of wiki article to shell script.
31
50
## REDCap installation
32
51
33
52
We do not currently have a bare-metal installation procedure. That said, the
34
-
vagrant files presented in this repo contain many of the required steps in a
35
-
deployment process. Other steps can be found in the above upgrade
53
+
vagrant files presented in this repo contain many of the required steps in
54
+
such a deployment process. Other steps can be found in the above upgrade
36
55
instructions.
37
56
38
57
ToDo: Make vagrant provisioning scripts more like a production deployment, but
39
58
don't be too wed to the prod and stage instance we have today. Make the
40
59
deployment we _want_, not the deployment we have.
41
60
42
61
43
-
## Hook deployment
62
+
## Contributions
44
63
45
-
CTSI REDCap Hooks are deployed using the script redcap_extensions.sh from this
Copy file name to clipboardExpand all lines: docs/creating_the_test_vm_with_vagrant.rst
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Purpose
6
6
7
7
The "vagrant" folder was created with the goal of making testing `REDCap <http
8
8
://project-redcap.org/>`__ and REDCap extensions as easy as possible. The
9
-
"vagrant" folder contains the `Vagrantfile <../vagrant/Vagrantfile>`__ which
9
+
root folder contains the `Vagrantfile <Vagrantfile>`__ which
10
10
allows you to start a virtual machine capable of running the `REDCap software
11
11
<http://http://www.project-redcap.org>`__. This virtual machine will install
12
12
Apache and MySQL software without any user intervention. If provided with a
@@ -19,6 +19,7 @@ RED-I to import data into a sample REDCap project:
19
19
- You have to obtain the REDCap software from http://project-redcap.org/
20
20
- You have to install the **Vagrant** software
21
21
- You have to install the **Virtual Box** software or another virtual machine provider. For this discussion we will assume Virtual Box is the virtual machine provider for Vagrant.
22
+
- You have to install the Vagrant hostsupdater plugin
22
23
23
24
Steps
24
25
-----
@@ -43,31 +44,39 @@ On Mac OSX users using brew can install these packages using brew cask:
43
44
- brew cask install virtualbox
44
45
- brew cask install vagrant
45
46
47
+
48
+
2. Install Hosts updater plugin
49
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
+
51
+
Vagrant will need one plugin for this VM. On any platform:
52
+
53
+
- vagrant plugin install vagrant-hostsupdater
54
+
46
55
For more details about Vagrant software you can go to
0 commit comments