generated from koriym/user-manual-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from ray-di/koriym-patch-1
Update README.md
- Loading branch information
Showing
1 changed file
with
10 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ |