Skip to content

Commit 2e221b6

Browse files
committed
Update README
1 parent 2161615 commit 2e221b6

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,46 @@ CoderDojo は7〜17歳を対象とした非営利のプログラミング道場
8181

8282
<br>
8383

84+
85+
## :gem: ローカル環境で確認する方法
86+
87+
エラーなどで困ったら [Rails Girls インストール・レシピ](https://railsgirls.jp/install)を見るのがオススメです。
88+
Ruby がインストールできれば十分で、 **Rails のインストールは不要** です。
89+
90+
```shell
91+
# macOS の場合: Homebrew ( https://brew.sh/index_ja ) 経由がオススメ
92+
$ brew install rbenv ruby-build
93+
94+
# Linux の場合: https://github.com/rbenv/rbenv#readme に沿って rbenv をインストール
95+
$ sudo apt install rbenv # Debian, Ubuntu 系のディストリビューションの場合
96+
97+
# Windows の場合: 以下の Rails Girls インストール・レシピに沿ってインストール
98+
# https://railsgirls.jp/install
99+
100+
# `.ruby-version` ファイルにあるバージョン番号を確認し、バージョン番号 x.y.z をメモする
101+
# https://github.com/coderdojo-japan/dojocon.coderdojo.jp/blob/main/.ruby-version
102+
103+
# 上記でメモした Ruby のバージョン番号をインストールする
104+
$ rbenv install x.y.z
105+
106+
# 上記のバージョンの Ruby がインストールされたことを確認する
107+
$ ruby --version
108+
109+
# 必要なライブラリをインストールする
110+
$ bundle install
111+
112+
# ローカルサーバーを立ち上げる
113+
$ bundle exec jekyll server
114+
```
115+
116+
無事にローカルサーバーが立ち上がったら、[http://localhost:4000/](http://localhost:4000/) にアクセスしてWebサイトを修正・確認します。
117+
118+
<br>
119+
120+
84121
## :octocat: 関連リポジトリ
85122

86-
- [GitHub - DojoCon Japan リポジトリ一覧](https://github.com/search?q=org%3Acoderdojo-japan+dojocon&type=repositories)
123+
- [GitHub - DojoCon Japan リポジトリ一覧](https://github.com/search?q=org%3Acoderdojo-japan%20dojocon&type=repositories)
87124
- [GitHub - decadojo.coderdojo.jp](https://github.com/coderdojo-japan/decadojo.coderdojo.jp)
88125
- [GitHub - map.coderdojo.jp](https://github.com/coderdojo-japan/map.coderdojo.jp)
89126
- [GitHub - coderdojo.jp](https://github.com/coderdojo-japan/coderdojo.jp)

0 commit comments

Comments
 (0)