Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 879 Bytes

developing-without-vm.md

File metadata and controls

14 lines (10 loc) · 879 Bytes

Developing without using the VM

The simplest way to get Smart Answers running locally is to run:

$ PLEK_SERVICE_CONTENT_STORE_URI=https://www.gov.uk/api \
PLEK_SERVICE_WHITEHALL_ADMIN_URI=https://www.gov.uk \
PLEK_SERVICE_STATIC_URI=assets-origin.integration.publishing.service.gov.uk \
rails s

This tells Smart Answers to use the production Content Store & Worldwide API, and the asset server from the integration environment.

If you don't set either environment variable then the app will attempt to connect to the content store, worldwide API and asset server at http://content-store.dev.gov.uk, http://whitehall-admin.dev.gov.uk and http://static.dev.gov.uk respectively. NOTE. These are available automatically if you're developing using the VM. If the app can't connect to these hosts then you'll see errors.