After you edit your blog locally, use deploy.sh to send updates to GitHub Pages.
-
Make sure Ghost is running:
cd ~/.ghost ghost start -
Edit your blog at http://localhost:2373/ghost
-
Publish to the web:
cd ~/.ghost ./deploy.sh -
Wait about 10 minutes for GitHub Pages to update.
- First time: The script asks for your GitHub username, repository name, and URL. These are saved in
~/.ghost/deploy.confso you are not asked every time. - Later: The script uses your saved settings automatically.
- Reads your local blog from
http://localhost:2373 - Creates static HTML files your visitors will see
- Checks that links do not point to "localhost"
- Uploads the files to your GitHub repository
| Repository name | Your blog URL |
|---|---|
my-blog |
https://USERNAME.github.io/my-blog |
USERNAME.github.io |
https://USERNAME.github.io |
See TROUBLESHOOTING.md.
Common fixes:
- Run
ghost startbeforedeploy.sh - Check your internet connection
- Confirm your GitHub repository still exists and is public
If you publish to more than one GitHub repo, see MULTI-REPO.md.