"header":"Are you sure the time between these dates is correct?",
"header":"Are you sure the property has been vacant for this long?",
"type":"interruption_screen",
"type":"interruption_screen",
"answer_options":{
"answer_options":{
"0":{
"0":{
@ -919,7 +919,7 @@
}
}
]
]
},
},
"header":"Are you sure the time between these dates is correct?",
"header":"Are you sure the property has been vacant for this long?",
"type":"interruption_screen",
"type":"interruption_screen",
"answer_options":{
"answer_options":{
"0":{
"0":{
@ -1242,7 +1242,7 @@
"description":"",
"description":"",
"questions":{
"questions":{
"age1_known":{
"age1_known":{
"check_answers_card_number":1,
"check_answers_card_number":1,
"header":"Do you know the lead tenant’s age?",
"header":"Do you know the lead tenant’s age?",
"hint_text":"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"hint_text":"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type":"radio",
"type":"radio",
@ -5667,40 +5667,79 @@
}
}
}
}
},
},
"access_needs":{
"access_needs_exist":{
"header":"",
"header":"",
"description":"",
"description":"",
"questions":{
"questions":{
"accessibility_requirements":{
"housingneeds":{
"header":"Does anybody in the household have any disabled access needs?",
"header":"Does anybody in the household have any disabled access needs?",
"hint_text":"",
"hint_text":"",
"type":"checkbox",
"type":"radio",
"check_answer_label":"Anybody in household with disabled access needs",
"check_answer_label":"Anybody with disabled access needs",
"answer_options":{
"answer_options":{
"housingneeds_a":{
"1":{
"value":"Yes"
},
"2":{
"value":"No"
},
"divider":{
"value":true
},
"3":{
"value":"Don’t know"
}
}
}
}
},
"type_of_access_needs":{
"header":"Disabled access needs",
"description":"",
"questions":{
"housingneeds_type":{
"header":"What type of access need do they have?",
"header":"Are you sure the time between these dates is correct?",
"header":"Are you sure the property has been vacant for this long?",
"type":"interruption_screen",
"type":"interruption_screen",
"answer_options":{
"answer_options":{
"0":{
"0":{
@ -919,7 +919,7 @@
}
}
]
]
},
},
"header":"Are you sure the time between these dates is correct?",
"header":"Are you sure the property has been vacant for this long?",
"type":"interruption_screen",
"type":"interruption_screen",
"answer_options":{
"answer_options":{
"0":{
"0":{
@ -1277,7 +1277,7 @@
"description":"",
"description":"",
"questions":{
"questions":{
"age1_known":{
"age1_known":{
"check_answers_card_number":1,
"check_answers_card_number":1,
"header":"Do you know the lead tenant’s age?",
"header":"Do you know the lead tenant’s age?",
"hint_text":"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"hint_text":"The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type":"radio",
"type":"radio",
@ -5669,40 +5669,79 @@
}
}
}
}
},
},
"access_needs":{
"access_needs_exist":{
"header":"",
"header":"",
"description":"",
"description":"",
"questions":{
"questions":{
"accessibility_requirements":{
"housingneeds":{
"header":"Does anybody in the household have any disabled access needs?",
"header":"Does anybody in the household have any disabled access needs?",
"hint_text":"",
"hint_text":"",
"type":"checkbox",
"type":"radio",
"check_answer_label":"Anybody in household with disabled access needs",
"check_answer_label":"Anybody with disabled access needs",
"answer_options":{
"answer_options":{
"housingneeds_a":{
"1":{
"value":"Yes"
},
"2":{
"value":"No"
},
"divider":{
"value":true
},
"3":{
"value":"Don’t know"
}
}
}
}
},
"type_of_access_needs":{
"header":"Disabled access needs",
"description":"",
"questions":{
"housingneeds_type":{
"header":"What type of access need do they have?",
On [GOV.UK PaaS](https://www.cloud.service.gov.uk/), service credentials are appended to the environment variable `VCAP_SERVICES` when services [are bound](https://docs.cloud.service.gov.uk/deploying_services/s3/#bind-an-aws-s3-bucket-to-your-app) to an application.
Such services include datastores and S3 buckets.
Our application uses S3 and Redis clients and supports two different ways of parsing their configuration:
* Via the environment variable `VCAP_SERVICES` using the `PaasConfigurationService` class
* Via the environment variables `S3_CONFIG` and `REDIS_CONFIG` using the `EnvConfigurationService` class
`S3_CONFIG` and `REDIS_CONFIG` are populated using a similar structure than `VCAP_SERVICES`:
S3_CONFIG:
```json
[
{
"instance_name": "bucket_1",
"credentials": {
"aws_access_key_id": "123",
"aws_secret_access_key": "456",
"aws_region": "eu-west-1",
"bucket_name": "my-bucket"
}
}
]
```
REDIS_CONFIG:
```json
[
{
"instance_name": "redis_1",
"credentials": {
"uri": "redis_uri"
}
}
]
```
In order to switch from using [GOV.UK PaaS](https://www.cloud.service.gov.uk/) provided services to external ones, instances of `PaasConfigurationService` need to be replaced by `EnvConfigurationService`.
This assumes that `S3_CONFIG` or/and `REDIS_CONFIG` are available.
Please check `full_import.rake` and `rack_attack.rb` for examples of how the configuration is used.
## Deployment
## Deployment
This application is running on [GOV.UK PaaS](https://www.cloud.service.gov.uk/). To deploy you need to:
This application is running on [GOV.UK PaaS](https://www.cloud.service.gov.uk/). To deploy you need to: