Unable to generate website due to not using GitHub

Hello!

I want to publish a small blog using a template downloaded from the Internet and Jekyll.

I have the content ready and the site works fine locally, but I am not able to generate the production version because of this error which (as far as my understanding goes) has to do with specifying a git repo in the _config.yml file.


JEKYLL_ENV=production bundle exec jekyll build
Configuration file: /path/myblog/_config.yml
Source: /path/myblog
Destination: /path/myblog/_site
Incremental build: disabled. Enable with --incremental
Generating…
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
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.


Since I don’t have a git repo and I don’t want to have one, I am looking to publish the website on my own server.

Isn’t there any chance to generate a production website without having a GitHub account or being linked to GitHub in any way?

I spent the entire day looking for a solution, but I couldn’t find it.

Any help would be appreciated.

Thank you.

it certainly can be done no problem.

What is the content of your config file? and your gem file? it sounds like the template you downloaded is using something that requires that field.

Here is something I found via google:

https://github.com/jekyll/jekyll/issues/4705

1 Like

Thank you!!!

I already went through the post you recommended, but I wasn’t able to solve the problem. Deleting the gem and gem.lock file returned an error too:

JEKYLL_ENV=production bundle exec jekyll build
Could not locate Gemfile or .bundle/ directory

My Jekyll version is 3.6.2

Operating system: Ubuntu 16.04.3 LTS

Origin of the template: https://agusmakmun.github.io

My modified _config.yml:

title: some title
description: my description
author: my name
about: about…
avatar_url: some_avatar

enableTags: true
tagarray: []

collections:
project:
output: true
permalink: /project/:path/

urls:
- text: Likes
url: /likes/
- text: Links
url: /links/
- text: XML Feed
url: /feed.xml
- text: About
url: /about/

url: "my_URI"
baseurl: “”

paginate: 20
per_page: 20
paginate_path: “/page/:num/”

markdown: kramdown

gems:

  • jekyll-paginate
  • jekyll-gist

compress_html:
clippings: all
comments: [""]
endings: all

My Gemfile:

source 'https://rubygems.org’
gem ‘github-pages’, group: :jekyll_plugins

And my Gemfile.lock:

GEM
remote: [same as in the Gemfile. Removed because I am allowed to publish 2 links only]
specs:
activesupport (4.2.7)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
colorator (1.1.0)
ethon (0.10.1)
ffi (>= 1.3.0)
execjs (2.7.0)
faraday (0.11.0)
multipart-post (>= 1.2, < 3)
ffi (1.9.17)
forwardable-extended (2.6.0)
gemoji (2.1.0)
github-pages (117)
activesupport (= 4.2.7)
github-pages-health-check (= 1.3.0)
jekyll (= 3.3.1)
jekyll-avatar (= 0.4.2)
jekyll-coffeescript (= 1.0.1)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.8.0)
jekyll-gist (= 1.4.0)
jekyll-github-metadata (= 2.3.1)
jekyll-mentions (= 1.2.0)
jekyll-optional-front-matter (= 0.1.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.0.3)
jekyll-redirect-from (= 0.11.0)
jekyll-relative-links (= 0.2.1)
jekyll-sass-converter (= 1.5.0)
jekyll-seo-tag (= 2.1.0)
jekyll-sitemap (= 0.12.0)
jekyll-swiss (= 0.4.0)
jekyll-theme-architect (= 0.0.3)
jekyll-theme-cayman (= 0.0.3)
jekyll-theme-dinky (= 0.0.3)
jekyll-theme-hacker (= 0.0.3)
jekyll-theme-leap-day (= 0.0.3)
jekyll-theme-merlot (= 0.0.3)
jekyll-theme-midnight (= 0.0.3)
jekyll-theme-minimal (= 0.0.3)
jekyll-theme-modernist (= 0.0.3)
jekyll-theme-primer (= 0.1.7)
jekyll-theme-slate (= 0.0.3)
jekyll-theme-tactile (= 0.0.3)
jekyll-theme-time-machine (= 0.0.3)
jekyll-titles-from-headings (= 0.1.4)
jemoji (= 0.7.0)
kramdown (= 1.11.1)
liquid (= 3.0.6)
listen (= 3.0.6)
mercenary (~> 0.3)
minima (= 2.0.0)
nokogiri (= 1.6.8.1)
rouge (= 1.11.1)
terminal-table (~> 1.4)
github-pages-health-check (1.3.0)
addressable (~> 2.3)
net-dns (~> 0.8)
octokit (~> 4.0)
public_suffix (~> 2.0)
typhoeus (~> 0.7)
html-pipeline (2.5.0)
activesupport (>= 2)
nokogiri (>= 1.4)
i18n (0.7.0)
jekyll (3.3.1)
addressable (~> 2.4)
colorator (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-avatar (0.4.2)
jekyll (~> 3.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.8.0)
jekyll (~> 3.3)
jekyll-gist (1.4.0)
octokit (~> 4.2)
jekyll-github-metadata (2.3.1)
jekyll (~> 3.1)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.2.0)
activesupport (~> 4.0)
html-pipeline (~> 2.3)
jekyll (~> 3.0)
jekyll-optional-front-matter (0.1.2)
jekyll (~> 3.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.0.3)
jekyll (~> 3.0)
jekyll-redirect-from (0.11.0)
jekyll (>= 2.0)
jekyll-relative-links (0.2.1)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
sass (~> 3.4)
jekyll-seo-tag (2.1.0)
jekyll (~> 3.3)
jekyll-sitemap (0.12.0)
jekyll (~> 3.3)
jekyll-swiss (0.4.0)
jekyll-theme-architect (0.0.3)
jekyll (~> 3.3)
jekyll-theme-cayman (0.0.3)
jekyll (~> 3.3)
jekyll-theme-dinky (0.0.3)
jekyll (~> 3.3)
jekyll-theme-hacker (0.0.3)
jekyll (~> 3.3)
jekyll-theme-leap-day (0.0.3)
jekyll (~> 3.3)
jekyll-theme-merlot (0.0.3)
jekyll (~> 3.3)
jekyll-theme-midnight (0.0.3)
jekyll (~> 3.3)
jekyll-theme-minimal (0.0.3)
jekyll (~> 3.3)
jekyll-theme-modernist (0.0.3)
jekyll (~> 3.3)
jekyll-theme-primer (0.1.7)
jekyll (~> 3.3)
jekyll-theme-slate (0.0.3)
jekyll (~> 3.3)
jekyll-theme-tactile (0.0.3)
jekyll (~> 3.3)
jekyll-theme-time-machine (0.0.3)
jekyll (~> 3.3)
jekyll-titles-from-headings (0.1.4)
jekyll (~> 3.3)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
jemoji (0.7.0)
activesupport (~> 4.0)
gemoji (~> 2.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0)
json (1.8.6)
kramdown (1.11.1)
liquid (3.0.6)
listen (3.0.6)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
mercenary (0.3.6)
mini_portile2 (2.1.0)
minima (2.0.0)
minitest (5.10.1)
multipart-post (2.0.0)
net-dns (0.8.0)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
octokit (4.6.2)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.14.0)
forwardable-extended (~> 2.6)
public_suffix (2.0.5)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.4.23)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
terminal-table (1.7.3)
unicode-display_width (~> 1.1.1)
thread_safe (0.3.5)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unicode-display_width (1.1.3)

PLATFORMS
ruby

DEPENDENCIES
github-pages

BUNDLED WITH
1.13.7

Since I am not a developer, I am in total darkness now and have no idea about what should I change to make it work. :frowning:

Sounds to me you are using the GitHub Pages gem in your Gemfile.

Take a look in that file, remove the line that looks like gem “github-pages” and replace it with

gem “jekyll”

Run bundle update and you should be good to go. Since you’re using the GitHub Pages gem it’s requiring a GH repo and choking on that. If you use the vanilla Jekyll gem you won’t have that issue.

Modified the Gemfile as follows:

source 'https://rubygems.org’
gem ‘jekyll’

Then:

$ sudo bundle update
Fetching gem metadata…
Fetching gem metadata…
Resolving dependencies…
Using public_suffix 3.0.1 (was 2.0.5)
Using addressable 2.5.2 (was 2.5.0)
Using bundler 1.16.0
Using colorator 1.1.0
Using ffi 1.9.18 (was 1.9.17)
Using forwardable-extended 2.6.0
Using rb-fsevent 0.10.2 (was 0.9.8)
Using rb-inotify 0.9.10 (was 0.9.8)
Using sass-listen 4.0.0
Using sass 3.5.4 (was 3.4.23)
Using jekyll-sass-converter 1.5.1 (was 1.5.0)
Using ruby_dep 1.5.0
Using listen 3.1.5 (was 3.0.6)
Using jekyll-watch 1.5.1 (was 1.5.0)
Using kramdown 1.16.2 (was 1.11.1)
Using liquid 4.0.0 (was 3.0.6)
Using mercenary 0.3.6
Using pathutil 0.16.1 (was 0.14.0)
Using rouge 2.2.1 (was 1.11.1)
Using safe_yaml 1.0.4
Using jekyll 3.6.2 (was 3.3.1)
Bundle updated!

$ JEKYLL_ENV=production bundle exec jekyll build

Configuration file: /path/myblog/_config.yml
Deprecation: The ‘gems’ configuration option has been renamed to ‘plugins’. Please update your config file accordingly.
Dependency Error: Yikes! It looks like you don’t have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: 'cannot load such file – jekyll-paginate’
jekyll 3.6.2 | Error: jekyll-paginate

…installed jekyll-paginate:

$ sudo gem install jekyll-paginate
Successfully installed jekyll-paginate-1.1.0
Parsing documentation for jekyll-paginate-1.1.0
Installing ri documentation for jekyll-paginate-1.1.0
Done installing documentation for jekyll-paginate after 0 seconds
1 gem installed

and replaced gems: with plugins: in the _config.yml file, then tried again:

$ JEKYLL_ENV=production bundle exec jekyll build
Configuration file: /path/myblog/_config.yml
Dependency Error: Yikes! It looks like you don’t have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: 'cannot load such file – jekyll-paginate’
jekyll 3.6.2 | Error: jekyll-paginate

It looks like jekyll-paginate hasn’t been installed though. Not sure how can I install it or its dependencies correctly.

Thank you for your help.

You need to also add the paginate plugin to your Gemfile as per its installation instructions.

If you have any other plugins they’ll need to be added to your Gemfile and installed that way otherwise bundle exec will continue to throw dependency errors.

1 Like

I can’t THANK YOU enough! Sometimes saving a life is much less than helping some poor soul on a forum. :slight_smile:

All the problems were solved and here’s how I did it, in case others might encounter the same error:

  1. I edited the Gemfile and added two lines (‘jekyll-gist’ was also required after I installed ‘jekyll-paginate’ as described in the link you provided)

source 'https://rubygems.org’
gem 'jekyll’
gem 'jekyll-paginate’
gem ‘jekyll-gist’

  1. Exec bundle in a terminal

$ bundle
Using public_suffix 3.0.1
Using addressable 2.5.2
Using bundler 1.16.0
Using colorator 1.1.0
Using multipart-post 2.0.0
Using faraday 0.13.1
Using ffi 1.9.18
Using forwardable-extended 2.6.0
Using rb-fsevent 0.10.2
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.4
Using jekyll-sass-converter 1.5.1
Using ruby_dep 1.5.0
Using listen 3.1.5
Using jekyll-watch 1.5.1
Using kramdown 1.16.2
Using liquid 4.0.0
Using mercenary 0.3.6
Using pathutil 0.16.1
Using rouge 2.2.1
Using safe_yaml 1.0.4
Using jekyll 3.6.2
Using sawyer 0.8.1
Using octokit 4.8.0
Using jekyll-gist 1.5.0
Using jekyll-paginate 1.1.0
Bundle complete! 3 Gemfile dependencies, 27 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.

  1. Also ran (thou it might not have been necessary, but I wanted to make sure since I went crazy with these). :slight_smile:

$ sudo gem install jekyll-paginate jekyll-gist #output said they are installed

Now I can generate the production build:

$ JEKYLL_ENV=production bundle exec jekyll build
Configuration file: /path/Desktop/myblog/_config.yml
Source: /path/Desktop/myblog
Destination: /path/Desktop/myblog/_site
Incremental build: disabled. Enable with --incremental
Generating…
done in 0.791 seconds.
Auto-regeneration: disabled. Use --watch to enable.

Let me tell you this: this Jekyll forum rocks. Not only that is a great piece of engineering (it is really fast and it looks and works great), but your support was warm and I felt like I was at home here.

All the support I received was amazing. Much, much appreciated!

2 Likes