Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: details about running locally and Netlify deploys #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@ javascript: (function() {

You can use Git History for local git repos with the [CLI](https://github.com/pomber/git-history/tree/master/cli) or with the [VS Code extension](https://marketplace.visualstudio.com/items?itemName=pomber.git-file-history).

## Hacking

To run from local checkout:

yarn install
yarn start

it'll open the starting page in browser, you'll want to append the path that comes after `https://github.com/`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't complete formulating this sentence perhaps.
But the reason this needs clarification in the first place, is that starting page always says "2. Replace github.com with github.githistory.xyz". Ideally it'd use current domain, e.g. "2. Replace github.com with localhost:3000" or "2. Replace github.com with deploy-preview-139--github-history.netlify.com".


### Netlify deploys

Once you submit a PR to `pomber/git-history` repo, Netlify will try to build it a deploy a publicly accessible preview domain such as https://deploy-preview-137--github-history.netlify.com/.
To get the preview URL, look for "deploy/netlify Deploy preview ready!" line, click on "Details" link to its right.
It will also get updated on each push to the PR branch.

If you want to set up hosting and public previews for branches of your fork *before* you submit a PR:

1. Go to https://app.netlify.com/.
2. Login with GitHub.
3. Click "New site from Git" button.
It'll likely prompt you to give Netlify some access to your repos.
4. Choose your fork of this repo.
5. Under "Build & deploy" settings, set Build command to `yarn build` and Publish directory to `build`.
6. Under "Deploy contexts", configure which branches to build.

## Support Git History

### Sponsors
Expand Down