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

Cannot run Jekyll locally with "No repo name found". #4705

Closed
henrydf opened this Issue Mar 24, 2016 · 9 comments

Comments

Projects
None yet
8 participants
@henrydf

henrydf commented Mar 24, 2016

What version of Jekyll are you using (jekyll -v)?

jekyll 3.0.3

What operating system are you using?

Mac OS X EI Captian

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
Only run 'jekyll serve' after 'jekyll new . --force' in the top level of git repository.

**BUT, everything is ok on http://henrydf.github.io

What did you expect to see?

Success output, like below:
Configuration file: /Users/henry/henrydf.github.io/test/_config.yml
Source: /Users/henry/henrydf.github.io/test
Destination: /Users/henry/henrydf.github.io/test/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.413 seconds.
Auto-regeneration: enabled for '/Users/henry/henrydf.github.io/test'
Configuration file: /Users/henry/henrydf.github.io/test/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.

What did you see instead?

Configuration file: /Users/henry/henrydf.github.io/_config.yml
Source: /Users/henry/henrydf.github.io
Destination: /Users/henry/henrydf.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
No repo name found.

@chrisfinazzo

This comment has been minimized.

Show comment
Hide comment
@chrisfinazzo

chrisfinazzo Mar 24, 2016

Contributor

Looks like you might be in the wrong directory. Can you cd into test and build from there? As someone who ran into this a few times both when learning about Jekyll and also migrating sites, you might need to move your repo from test to the root directory in order for things to work.

Contributor

chrisfinazzo commented Mar 24, 2016

Looks like you might be in the wrong directory. Can you cd into test and build from there? As someone who ran into this a few times both when learning about Jekyll and also migrating sites, you might need to move your repo from test to the root directory in order for things to work.

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Mar 24, 2016

Member

@henrydf Add your repository name with organization to your _config.yml, like: repository: henry/henrydf.github.io.

We're working on fixing this up in jekyll/github-metadata#45.

Member

parkr commented Mar 24, 2016

@henrydf Add your repository name with organization to your _config.yml, like: repository: henry/henrydf.github.io.

We're working on fixing this up in jekyll/github-metadata#45.

@parkr parkr closed this Mar 24, 2016

@parkr parkr added the bug label Mar 24, 2016

@corysimmons

This comment has been minimized.

Show comment
Hide comment
@corysimmons

corysimmons Aug 9, 2016

Contributor

@parkr What if I don't want my jekyll blog to be a github repo? Any way to run this locally? Is git a requisite?

my err:

Error: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository.
           Error: Run jekyll build --trace for more information.
Contributor

corysimmons commented Aug 9, 2016

@parkr What if I don't want my jekyll blog to be a github repo? Any way to run this locally? Is git a requisite?

my err:

Error: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository.
           Error: Run jekyll build --trace for more information.
@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Aug 9, 2016

Member

@corysimmons Of course, remove any mention of jekyll-github-metadata from your project, including site.github.* references in your site.

Member

parkr commented Aug 9, 2016

@corysimmons Of course, remove any mention of jekyll-github-metadata from your project, including site.github.* references in your site.

@corysimmons

This comment has been minimized.

Show comment
Hide comment
@corysimmons

corysimmons Aug 9, 2016

Contributor

@parkr lol, thanks man. Accidentally copypasta'd a Gemfile with gh-pages in it (not simply jekyll). Works now 👍

Contributor

corysimmons commented Aug 9, 2016

@parkr lol, thanks man. Accidentally copypasta'd a Gemfile with gh-pages in it (not simply jekyll). Works now 👍

filipbartek pushed a commit to filipbartek/filipbartek.github.io that referenced this issue Mar 19, 2017

Filip Bártek
Add repository to _config.yml
Modify _config.yml according to
jekyll/jekyll#4705

jean added a commit to salween/salween.github.io that referenced this issue May 12, 2017

Tweak config: add `repository`, change name
See jekyll/jekyll#4705 (comment)
for motivation for repository key.

Description: this isn't a theme, it's a website.
@cbaba20

This comment has been minimized.

Show comment
Hide comment
@cbaba20

cbaba20 Jun 11, 2017

Hi team,
In my case I have found that there were two gemfile (files) in my project folder . so I deleted one of them and it works.

cbaba20 commented Jun 11, 2017

Hi team,
In my case I have found that there were two gemfile (files) in my project folder . so I deleted one of them and it works.

@cmdcolin

This comment has been minimized.

Show comment
Hide comment
@cmdcolin

cmdcolin Jul 14, 2017

What if jekyll-github-metadata is a sub dependency of the theme I'm using? If I remove the jekyll-github-metadata from gemfile.lock it says it is corrupt

cmdcolin commented Jul 14, 2017

What if jekyll-github-metadata is a sub dependency of the theme I'm using? If I remove the jekyll-github-metadata from gemfile.lock it says it is corrupt

andrew-rgr added a commit to redgreenrepeat/redgreenrepeat.github.io that referenced this issue Sep 15, 2017

CONFIG: Add git repository value
To fix `jekyll s` error:

> No repo name found. Specify using PAGES_REPO_NWO environment
> variables, 'repository' in your configuration, or set up an 'origin'
> git remote pointing to your github.com repository.

via: jekyll/jekyll#4705 (comment)

JosueDanielBust added a commit to ScaleConfCo/scaleconfco-2018 that referenced this issue Mar 2, 2018

Whispres added a commit to Whispres/whispres.github.io that referenced this issue Jul 2, 2018

Added repository:
Following advice to solve an issue as suggested [here](jekyll/jekyll#4705).
@Supreme-Kai

This comment has been minimized.

Show comment
Hide comment
@Supreme-Kai

Supreme-Kai Sep 11, 2018

Hey. I'm actually having the same issue, but the file I'm working with is a forked repo and so I don't feel comfortable changing the cofig files. Is there any other way to get the project running locally? jekyll serve --watch was working perfectly fine for me just a week ago.

Supreme-Kai commented Sep 11, 2018

Hey. I'm actually having the same issue, but the file I'm working with is a forked repo and so I don't feel comfortable changing the cofig files. Is there any other way to get the project running locally? jekyll serve --watch was working perfectly fine for me just a week ago.

@DirtyF

This comment has been minimized.

Show comment
Hide comment
@DirtyF

DirtyF Sep 11, 2018

Member

Please use our forum for questions regarding jekyll's usage.

Member

DirtyF commented Sep 11, 2018

Please use our forum for questions regarding jekyll's usage.

@jekyll jekyll locked as off topic and limited conversation to collaborators Sep 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.