Skip to content

Commit

Permalink
Merge pull request #82 from ray-di/koriym-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
koriym authored May 13, 2024
2 parents a997b25 + b9d9617 commit 9b9cf0a
Showing 1 changed file with 10 additions and 38 deletions.
48 changes: 10 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,23 @@

The documentations are rendered with [Jekyll](http://jekyllrb.com) and hosted at http://ray-di.github.io/.

### Install jekyll via docker
### Start Server with Docker

```
docker pull jekyll/jekyll:pages
./bin/serve_docker.sh
```

### Start local testing server
### Start Server in local Ruby environment

* Requires Ruby 3.2.3 (Notice: It's [not or later](https://stackoverflow.com/questions/77851863/bundle-exec-jekyll-serve-not-working-locally))

#### Install
```
git clone [email protected]:ray-di/ray-di.github.io.git
cd ray-di.github.io
./bin/serve.sh
gem install jekyll bundler
bundle install
```

### Troubleshooting

If the following error occurs, you can substitute `docker compose up`.

#### Run
```
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
Configuration file: /srv/jekyll/_config.yml
Source: /srv/jekyll
Destination: /srv/jekyll/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 3.192 seconds.
Auto-regeneration: enabled for '/srv/jekyll'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- webrick (LoadError)
from <internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:184:in `require_relative'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:184:in `setup'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:102:in `process'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `block in start'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `each'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:93:in `start'
from /usr/gem/gems/jekyll-3.9.2/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /usr/gem/gems/jekyll-3.9.2/exe/jekyll:15:in `<top (required)>'
from /usr/gem/bin/jekyll:25:in `load'
from /usr/gem/bin/jekyll:25:in `<main>'
./bin/servel_local.sh
```

Open http://localhost:4000/

0 comments on commit 9b9cf0a

Please sign in to comment.