Build and Publish to Production
When to Use
- •User wants to deploy the site
- •User wants to publish changes
- •User mentions pushing to prod or making changes live
Instructions
Run the single command that does everything:
bash
rake push
CRITICAL: Always run rake push with required_permissions: ["all"] to run outside the sandbox. This command needs full network access for git push and deployment, and may need other system permissions.
This command:
- •Builds the Jekyll site to
_site/ - •Stages all changes with
git add -A - •Commits with message "new content"
- •Pushes to origin master
- •Deploys
_site/to the gh-pages branch
Important
- •Always use
rake push- never calldeploy.shdirectly - •The site is hosted at https://fit.grin.io
Local Preview First
To preview changes before publishing:
bash
./dev.sh
This runs Jekyll with watch mode at http://localhost:4000.
Reference
- •See
cli.rakefor the push task implementation - •See
deploy.shfor deployment details - •See
_config.ymlfor site configuration