MediaOS DEV Training
INTRO
The MediaOS platform uses below codebase levels to create the CORE functionality in the CMS/Front-end and theming for each brand/region in the US and across the EUHUB.
For more info: http://docs.hdigital.net/mediaos/code-architecture.html
CORE (CS) - https://github.com/Hearst-Digital/Rams-CS
THEME BASE - https://github.com/Hearst-Digital/rams-themes-base
THEMES US - https://github.com/Hearst-Digital/rams-themes-us
THEMES IT - https://github.com/Hearst-Digital/rams-themes-it
THEMES UK - https://github.com/Hearst-Digital/rams-themes-uk
THEMES NL - https://github.com/Hearst-Digital/rams-themes-nl
Using the HMI Dev Jenkins app and the AWS console, a full EC2 stack can be spun up with the below features.
Please follow this tutorial to go through the spin-up process step-by-step:
http://docs.hdigital.net/devboxes/hdm-devbox-setup.html
Features:
Use the below settings to setup a full stack EC2 instance, depending on which site/region you select jenkins will import the latest production DB with different release branches/versions for the CORE and themes
After a devbox has been deployed via Jenkins, you can connect via SSH and mount the box to your local machine with SSH FS, similar to mounting a network drive.
SSH
Mounting Devbox to local machine
Using SSHFS, a devbox can be mounted to your local machine to edit files on the devbox locally.
http://docs.hdigital.net/devboxes/mount-devbox.html
Using RAMS-ID, member accounts can be setup to access to multiple MediaOS sites in the US/EUHUB. Accounts are divided into the below 4 account types. For more info about specific permissions, please refer to :
https://thetower.atlassian.net/wiki/display/II/Current+MediaOS+Permission+Levels
Admin area: https://rams-id.hdmtools.com/
DEV
CMS - rams-devnameorfeaturename.hmitech.io
Site - www-devnameorfeaturename.hmitech.io
STAGE
CMS - rams-stage.sitename.com
Site - www-stage.sitename.com
PROD
CMS - rams.sitename.com
Site - www.sitename.com
Within the CMS, the sandbox allows editorial to customise the home/section landing pages and top navigation menus.
Features include:
More info here: https://thetower.atlassian.net/wiki/download/attachments/52658455/MediaOS_101_Edited.pdf?version=1&modificationDate=1435765074571&api=v2
Requirements:
Steps
More info: https://thetower.atlassian.net/wiki/display/CR/Git+Workflow+-+Git+Flow
To create a country theme for a specific brand, pull down the theme repo and follow the below steps:
More info: http://docs.hdigital.net/mediaos/setup-new-theme.html
http://docs.hdigital.net/mediaos/setup-new-theme/changing-sass.html
/* update DB on devbox */
cd /home/www/sites/cli; php Database.php migrations:migrate
/* clear cache on a page */
?force_database
/* clear memcached layer to update the front-end */
sudo service memcached restart
/* bypass caching layer on the page */
?dynamic
/* display errors on the page */
?show_errors
/* compile grunt */
cd /www/sites; grunt build
/* download branches */
git fetch --all
/* checkout/change feature branch */
git checkout feature/{branch-name}