Hello colleagues,
The preview feature is implemented with domain name mappings. You need to create separate domain name for preview version of the platform (e.g.
preview.myedx.com) and set key for environment variable HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS (in lms.env.json and cms.env.json or corresponding server-vars.yml variable EDXAPP_MODULESTORE_MAPPINGS) to the value that would catch your new domain name.
The variable PREVIEW_LMS_BASE should be set to the new domain name too.
By default variable HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS has following value:
"preview\\.": "draft-preferred"
In such a default case any request that comes from
preview.<any-delegated-domain-name> would be responded with draft version of your content.
"stage-preview\\.": "draft-preferred"
If my explanation is not clear or I'm mistaken, please correct me or ask any relevant questions.
Liubov
понедельник, 16 мая 2016 г., 16:10:42 UTC+3 пользователь Anna Winklerová написал: