Since the site is deployed to a CMS, the deployment process is very manual. Make sure to build before you deploy.
The built site will be in a directory named for the build off the project directory.
prodfor productionpilotfor pilot
Static Assets
Static assets are hosted on the foundation’s CDN (through Microsoft Azure).
-
Copy any new or changed assets to the intermediary FTP server. Assets for the production version go in the
VRCdirectory while files for the pilot site will go invrc-pilot.- vrccdnsftp.foundationccc.org:22
- username:
cccpln - password:
e4pchcfM
Note: The IP for this FTP server seems to change periodically. The SSH client doesn’t like this and will complain. This may require you to delete its entry from
~/.ssh/known_hostsin order to connect. -
Hit the CDN transfer trigger to trigger a transfer of the assets from the intermediary FTP server to the CDN. You should see the message
File Copy Processed Successfullyand the files will have been deleted from the FTP server if the transfer was successful.Note: The CDN caches data and cache-busting is currently not enabled. It takes some time for new versions of replaced assets to be served. Different edges may invalidate the cache at different times, so people in different parts of the country may get different versions of the CDN-served files. Note: Filenames are transformed to all lower case when transferred from the FTP to the CDN. If you have any upper case file names that are referenced as such in the HTML, they will break.
Static assets are accessible at https://vrccdn.cccco.edu/vrccdnpublic/<path>
HTML
HTML is hosted on the Cornerstone OnDemand CMS and must be copy/pasted in manually.
-
Copy the build content from the build directory. If you have
pbcopyinstalled, you can do this by runningcat <html-file> | pbocpy. -
Log into Cornerstone as Dave Brown (credentials in 1Password)
-
Hover the “Admin” menu and click “Preferences” from the dropdown menu
-
Under “System Preferences” click “Manage Custom Pages”
-
Edit the page to be updated by clicking the paper and pencil icon for that page. If this is a new page, start by duplicating an existing page, renaming it, and then editing that new page.
-
Hover the content area under the “Options” heading to reveal a cog. Click the cog to bring up the editor.
Note: If the cog does not show up, you can trigger a click on it via jQuery by running
$('.widgetButtonOptions').click()in the developer tools console. -
Switch the editor to “HTML” mode by clicking the button at the bottom of the editor
-
Select all the text in the text box by focusing the insertion point in the box and pressing Cmd-a
-
Paste the new content
-
Click the “Save” button on the content editor
-
Scroll to the bottom of the page and click either the “Save” or the “Save and Exit” button to lock in the change