Giter Club home page Giter Club logo

justinhartman / jekyll-heroku-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 2.0 3.93 MB

๐Ÿงช Comprehensive boilerplate code for installing and configuring a Jekyll 4 site on Heroku with an elegant Material Design Lite theme.

Home Page: https://jekyll-heroku-starter-kit.herokuapp.com/

License: MIT License

Ruby 5.14% HTML 48.87% XSLT 12.60% CSS 33.38%
heroku heroku-apps jekyll-boilerplate jekyll-bootstrap heroku-buildpack boilerplate boilerplate-template boilerplate-application boilerplates herokuapp

jekyll-heroku-starter-kit's Introduction

Hi there, I'm Justin ๐Ÿ‘‹

I joined GitHub on 8 April 2011 and, aside from a small hiatus in 2018, I've been contributing code to public and private repositories from day one. Here are some stats around my contributions to GitHub over the years.

Key Repositories

These are some of the projects I've created which are important to me. Check them out and see what you think.

jekyll-heroku-starter-kit's People

Contributors

justinhartman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jekyll-heroku-starter-kit's Issues

Not a directory @ rb_sysopen - /app/_site/assets/images/favicons/site.webmanifest/index.html

Describe the Bug

When trying to load site.webmanifest Jekyll or Heroku (or both) is trying to parse the file as a directory instead of a file.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
  <HEAD><TITLE>Internal Server Error</TITLE></HEAD>
  <BODY>
    <H1>Internal Server Error</H1>
    Not a directory @ rb_sysopen - /app/_site/assets/images/favicons/site.webmanifest/index.html
    <HR>
    <ADDRESS>
     WEBrick/1.4.2 (Ruby/2.6.3/2019-04-16) at
     jekyll-heroku-starter-kit.herokuapp.com:443
    </ADDRESS>
  </BODY>
</HTML>

Heroku server crashes - NameError: uninitialized constant YAML

Describe the Bug

When trying to access the built Heroku site over here there is an Application error message:

2020-07-09 at 10 19 25

Running heroku logs --tail shows the following output:

2020-07-09T07:03:51.351930+00:00 heroku[web.1]: State changed from crashed to starting
2020-07-09T07:03:56.929879+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 4413`
2020-07-09T07:04:01.760002+00:00 app[web.1]: [heroku-exec] Starting
2020-07-09T07:04:03.238895+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-jekyll-0.3.5/lib/rack/jekyll.rb:60: warning: key "Content-Type" is duplicated and overwritten on line 60
2020-07-09T07:04:03.318686+00:00 app[web.1]: bundler: failed to load command: rackup (/app/vendor/bundle/ruby/2.6.0/bin/rackup)
2020-07-09T07:04:03.323469+00:00 app[web.1]: NameError: uninitialized constant YAML
2020-07-09T07:04:03.323471+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-jekyll-0.3.5/lib/rack/jekyll.rb:10:in `initialize'
2020-07-09T07:04:03.323472+00:00 app[web.1]: /app/config.ru:2:in `new'
2020-07-09T07:04:03.323472+00:00 app[web.1]: /app/config.ru:2:in `block in <main>'
2020-07-09T07:04:03.323472+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
2020-07-09T07:04:03.323473+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
2020-07-09T07:04:03.323473+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
2020-07-09T07:04:03.323474+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
2020-07-09T07:04:03.323475+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2020-07-09T07:04:03.323476+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
2020-07-09T07:04:03.323476+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
2020-07-09T07:04:03.323477+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
2020-07-09T07:04:03.323477+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
2020-07-09T07:04:03.323478+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
2020-07-09T07:04:03.323478+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:168:in `start'
2020-07-09T07:04:03.323478+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/bin/rackup:5:in `<top (required)>'
2020-07-09T07:04:03.323479+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `load'
2020-07-09T07:04:03.323480+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `<top (required)>'
2020-07-09T07:04:03.404037+00:00 heroku[web.1]: Process exited with status 1
2020-07-09T07:04:03.460298+00:00 heroku[web.1]: State changed from starting to crashed

Additional Context

This has to be caused by the recent upgrade from Jekyll 3 to 4. The last successful deploy to Heroku was commit 07b8c9a on 7 July. The next push to Heroku was commit 3113e61 on 9 July and since then the server has been crashing.

2020-07-09T00:59:17.000000+00:00 app[api]: Build started by user [email protected]
2020-07-09T01:02:53.117818+00:00 app[api]: Deploy 3113e619 by user [email protected]
2020-07-09T01:02:53.117818+00:00 app[api]: Release v30 created by user [email protected]
2020-07-09T01:02:53.289775+00:00 heroku[web.1]: Restarting
2020-07-09T01:02:53.304177+00:00 heroku[web.1]: State changed from up to starting
2020-07-09T01:02:54.651311+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-07-09T01:02:54.710909+00:00 app[web.1]: [2020-07-09 03:02:54] FATAL SignalException: SIGTERM
2020-07-09T01:02:54.710919+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/webrick/server.rb:170:in `select'
2020-07-09T01:02:54.710920+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/webrick/server.rb:170:in `block in start'
2020-07-09T01:02:54.710920+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/webrick/server.rb:32:in `start'
2020-07-09T01:02:54.710921+00:00 app[web.1]: /app/vendor/ruby-2.6.3/lib/ruby/2.6.0/webrick/server.rb:157:in `start'
2020-07-09T01:02:54.710921+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-1.6.13/lib/rack/handler/webrick.rb:34:in `run'
2020-07-09T01:02:54.710922+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-1.6.13/lib/rack/server.rb:287:in `start'
2020-07-09T01:02:54.710922+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-1.6.13/lib/rack/server.rb:148:in `start'
2020-07-09T01:02:54.710922+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-1.6.13/bin/rackup:4:in `<top (required)>'
2020-07-09T01:02:54.710923+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `load'
2020-07-09T01:02:54.710923+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `<top (required)>'
2020-07-09T01:02:54.710924+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
2020-07-09T01:02:54.710924+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
2020-07-09T01:02:54.710924+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
2020-07-09T01:02:54.710925+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
2020-07-09T01:02:54.710926+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
2020-07-09T01:02:54.710927+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
2020-07-09T01:02:54.710927+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
2020-07-09T01:02:54.710928+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
2020-07-09T01:02:54.710928+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
2020-07-09T01:02:54.710928+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
2020-07-09T01:02:54.710929+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
2020-07-09T01:02:54.710929+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
2020-07-09T01:02:54.710929+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
2020-07-09T01:02:54.710931+00:00 app[web.1]: /app/vendor/bundle/bin/bundle:104:in `load'
2020-07-09T01:02:54.710931+00:00 app[web.1]: /app/vendor/bundle/bin/bundle:104:in `<main>'
2020-07-09T01:02:54.711276+00:00 app[web.1]: [2020-07-09 03:02:54] INFO  going to shutdown ...
2020-07-09T01:02:54.711376+00:00 app[web.1]: [2020-07-09 03:02:54] INFO  WEBrick::HTTPServer#start done.
2020-07-09T01:02:54.724813+00:00 app[web.1]: Configuration file: /app/_config.yml
2020-07-09T01:02:54.811474+00:00 heroku[web.1]: Process exited with status 143
2020-07-09T01:02:56.388178+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 47042`
2020-07-09T01:02:58.000000+00:00 app[api]: Build succeeded
2020-07-09T01:02:58.605495+00:00 app[web.1]: [heroku-exec] Starting
2020-07-09T01:02:58.914201+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-jekyll-0.3.5/lib/rack/jekyll.rb:60: warning: key "Content-Type" is duplicated and overwritten on line 60
2020-07-09T01:02:58.933916+00:00 app[web.1]: bundler: failed to load command: rackup (/app/vendor/bundle/ruby/2.6.0/bin/rackup)
2020-07-09T01:02:58.935083+00:00 app[web.1]: NameError: uninitialized constant YAML
2020-07-09T01:02:58.935084+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-jekyll-0.3.5/lib/rack/jekyll.rb:10:in `initialize'
2020-07-09T01:02:58.935084+00:00 app[web.1]: /app/config.ru:2:in `new'
2020-07-09T01:02:58.935085+00:00 app[web.1]: /app/config.ru:2:in `block in <main>'
2020-07-09T01:02:58.935085+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
2020-07-09T01:02:58.935086+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
2020-07-09T01:02:58.935086+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
2020-07-09T01:02:58.935086+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
2020-07-09T01:02:58.935087+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2020-07-09T01:02:58.935088+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
2020-07-09T01:02:58.935088+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
2020-07-09T01:02:58.935089+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
2020-07-09T01:02:58.935089+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
2020-07-09T01:02:58.935089+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
2020-07-09T01:02:58.935090+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:168:in `start'
2020-07-09T01:02:58.935090+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/bin/rackup:5:in `<top (required)>'
2020-07-09T01:02:58.935091+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `load'
2020-07-09T01:02:58.935091+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/rackup:23:in `<top (required)>'
2020-07-09T01:02:58.987020+00:00 heroku[web.1]: Process exited with status 1
2020-07-09T01:02:59.022414+00:00 heroku[web.1]: State changed from starting to crashed

Heroku build failing on updated Gemfile

After pushing changes to updated packages in the Gemfile Heroku build script is returning the following error:

-----> Building on the Heroku-20 stack
-----> Using buildpacks:
       1. heroku/ruby
       2. https://github.com/heroku/heroku-buildpack-static
-----> Ruby app detected
-----> Installing bundler 2.2.16
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rack
###### WARNING:
       Your app was upgraded to bundler 2.2.16.
       Previously you had a successful deploy with bundler 2.0.2.
       
       If you see problems related to the bundler version please refer to:
       https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues
       
-----> Using Ruby version: ruby-2.7.1
       Purging Cache. Changing stack from heroku-16 to heroku-20
-----> Installing dependencies using bundler 2.2.16
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
       You are trying to install in deployment mode after changing
       your Gemfile. Run `bundle install` elsewhere and add the
       updated Gemfile.lock to version control.
       
       If this is a development machine, remove the /tmp/build_b26a3872/Gemfile freeze 
       by running ``.
       
       The dependencies in your gemfile changed
       
       You have added to the Gemfile:
       * jekyll (~> 4.2.0)
       
       You have deleted from the Gemfile:
       * jekyll (~> 4.0)
       Bundler Output: You are trying to install in deployment mode after changing
       your Gemfile. Run `bundle install` elsewhere and add the
       updated Gemfile.lock to version control.
       
       If this is a development machine, remove the /tmp/build_b26a3872/Gemfile freeze 
       by running ``.
       
       The dependencies in your gemfile changed
       
       You have added to the Gemfile:
       * jekyll (~> 4.2.0)
       
       You have deleted from the Gemfile:
       * jekyll (~> 4.0)
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.