Starefossen / docker-github-pages

:octocat: :whale: Alpine Docker Image for GitHub Pages and Jekyll powered sites
https://registry.hub.docker.com/u/starefossen/github-pages/
MIT License
191 stars 54 forks source link

I only see listing of my deployed folder, not the website. #70

Open joergi opened 3 years ago

joergi commented 3 years ago

If i deploy my jeykll gh-page blog with github, it works fine. the code is here, the blog is here

I also added the docker-compose.yml file to my project.

version: '3'
services:
  jekyll:
    image: starefossen/github-pages
    environment:
      - "JEKYLL_GITHUB_TOKEN: MY_TOKEN_XXXXX"
    ports:
      - "4000:4000"
    volumes:
      - ./:/usr/src/app
    tty: true

# file from https://github.com/Starefossen/docker-github-pages

the server get's deployed, but I only see this: image This is the structure of the deployed server with all tags and topics... but I can't see the website itself.

in the online version the default.html takes care of the deployment.

I have no idea, what I need to change, that it works locally too (because at the moment I'm always doing try'n'error on the live version

Thanks for your help @Starefossen !

Starefossen commented 3 years ago

What does the log say when you run the docker-compose up command?

joergi commented 3 years ago

thx for your quick reply

$ dc up
Starting blog_jekyll_1 ... done
Attaching to blog_jekyll_1
jekyll_1  | Configuration file: /usr/src/app/_config.yml
jekyll_1  | Invalid theme folder: _includes
jekyll_1  |             Source: /usr/src/app
jekyll_1  |        Destination: /_site
jekyll_1  |  Incremental build: disabled. Enable with --incremental
jekyll_1  |       Generating... 
jekyll_1  |        Jekyll Feed: Generating feed for posts
jekyll_1  |                     done in 0.372 seconds.
jekyll_1  |  Auto-regeneration: enabled for '/usr/src/app'
jekyll_1  |     Server address: http://0.0.0.0:4000
jekyll_1  |   Server running... press ctrl-c to stop.
kyeotic commented 3 years ago

I'm getting the same error, Invalid theme folder: _includes, it seems to be an issue with using one of the Supported themes with customizations. I am using Midnight

joergi commented 3 years ago

@kyeotic - do you only have this error or is your website also locally not rendered correctly?

kyeotic commented 3 years ago

@joergi It renders the same as yours, with a list page and no styling.

joergi commented 3 years ago

Any idea @Starefossen ?

joergi commented 3 years ago

The plugins I use :

plugins:
 - jekyll-feed
 - jekyll-sitemap
 - jekyll-seo-tag 

theme: jekyll-theme-tactile

https://github.com/joergi/blog/blob/main/_config.yml

Starefossen commented 3 years ago

Unfortunately I have not been able to figure out why this is happening @joergi.... 😕

joergi commented 3 years ago

okay :-( But you can confirm the error, right?

joergi commented 3 years ago

when I remove the theme completely, I don't have any error anymore

$ docker compose up

Starting blog_jekyll_1 ... done
Attaching to blog_jekyll_1
jekyll_1  | Configuration file: /usr/src/app/_config.yml
jekyll_1  |             Source: /usr/src/app
jekyll_1  |        Destination: /_site
jekyll_1  |  Incremental build: disabled. Enable with --incremental
jekyll_1  |       Generating... 
jekyll_1  |        Jekyll Feed: Generating feed for posts
jekyll_1  |                     done in 0.285 seconds.
jekyll_1  |  Auto-regeneration: enabled for '/usr/src/app'
jekyll_1  |     Server address: http://0.0.0.0:4000
jekyll_1  |   Server running... press ctrl-c to stop.

but there is still not file to click at.

joergi commented 3 years ago

do you have a "real" simple project where it works @Starefossen ? just to play around? Thanks a lot

joergi commented 3 years ago

Any update on this @Starefossen ?

rantoniuk commented 3 years ago

Probably a problem with Jekyll version, see here

joergi commented 3 years ago

Hey @warden I made a fork from @Starefossen project and use the newest versions..... see here https://github.com/joergi/docker-github-pages/blob/master/Dockerfile#L3

but I still have the same error somehow.

LuigiLazzari commented 3 years ago

I have the same problem.

manolosolalinde commented 3 months ago

Is this resolved? I have the same problem