Jekyll Deploy Error on Github Pages - al-folio repo

198 Views Asked by At

I am working on the al-folio repo with jekyll theme to create a portfolio for a client and all the development is done and it runs fine locally with no issues in build command or serve command. The client already had a github page with same repo and wanted me to update with the newly updated repo by me. I did what's necessary, updated the folders and when I tried to commit changes I got deploy error. I tried around 30+ times in his repo, I forked it to personal repo and tried on mine, other hosting sites like railway.app, netlify etc..but there was different error on each place.

In github pages whenever I make a change, it tried to deploy and gives the following error:

`bundler: failed to load command: jekyll (/home/runner/work/fbarez-portfolio-fork/fbarez-portfolio-fork/vendor/bundle/ruby/3.2.0/bin/jekyll)
/home/runner/work/fbarez-portfolio-fork/fbarez-portfolio-fork/vendor/bundle/ruby/3.2.0/gems/json-minify-0.0.3/lib/json/minify.rb:45:in `minify': Unable to pre-scan string: src" (SyntaxError)`

And then followed by what I assume is the json file it has an error in. The file is not in the repo and I think it is a lib file. I will attach screenshots of the errors I received in other sites and github too.

github error - image link

Few things I want to clarify

  • This is my first time dealing with jekyll or ruby or this type of files
  • I tried whatever has been told in the al-folio repo issues and couldn't find.
  • I will provide link to the repository's gem file: here
  • I tried changing ruby version, bundle version, including and excluding it in the gem file etc..

Thank you in advance.

railway.app error
`[Region: us-west1]

==============

Using Nixpacks

==============


context: e43efadd1de9a3dff2b08bcfbf1bf02b

Nixpacks build failed

 

 

╔══════════════════════════════ Nixpacks v1.20.0 ══════════════════════════════╗

║ node:setup   │ nodejs_21, npm-9_x                                            ║

║──────────────────────────────────────────────────────────────────────────────║

║ setup        │ pkgs: imagemagick, rustc, procps, libmagickwand-dev, git,     ║

║              │ curl, autoconf, bison, build-essential, libssl-dev, libyaml-  ║

║              │ dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-   ║

║              │ dev, libgdbm6, libgdbm-dev, libdb-dev                         ║

║              │ cmds: curl -fsSL https://github.com/rbenv/rbenv-              ║

║              │ installer/raw/HEAD/bin/rbenv-installer | bash -s stable &&    ║

║              │ printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >>             ║

║              │ /root/.profile && . /root/.profile && rbenv install 3.2.2 &&  ║

║              │ rbenv global 3.2.2 && gem install bundler:2.5.3               ║

║──────────────────────────────────────────────────────────────────────────────║

║ install      │ bundle install                                                ║

║──────────────────────────────────────────────────────────────────────────────║

║ node:install │ npm ci                                                        ║

║──────────────────────────────────────────────────────────────────────────────║

║ start        │                                                               ║

╚══════════════════════════════════════════════════════════════════════════════╝

 

Error: No start command could be found`
0

There are 0 best solutions below