The app deploys to https://ifdm-learning.stanford.edu/ via GitHub Pages and the gh-pages branch. The deploy script will automatically run the build step and generate the static files based on your local 1.x branch code. Make sure you are on the latest 1.x branch before deploying.
- Ensure you are on the latest
1.xbranch code:git checkout 1.x && git fetch && git pull
- Make sure you are using the correct Node version:
- If you use nvm and are not already on the correct version, run:
nvm use
- If you use nvm and are not already on the correct version, run:
- (Optional) Test the build locally before deploying:
yarn build
- Deploy to GitHub Pages:
yarn deploy
- After deploying, verify the deployment:
- Visit https://github.com/SU-SWS/ifdm_learning_apps/deployments to confirm the deployment ran successfully.
Example iFrame:
<iframe src="https://ifdm-learning.stanford.edu/interactives/investment-calculator/"></iframe>
See below screencast as an example of embedding the iframe:
- Clear browser cache
- Check GitHub Pages deployment status
- Verify the gh-pages branch updated
- Ensure the source URL is correct
- Check for CORS restrictions
- Test the iframe URL directly in browser
