Skip to content

Commit

Permalink
README のポート番号を8080に共通化した
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed May 8, 2024
1 parent a6c8d3f commit 2deed40
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## :wrench: Ruby / Python / Node.js / PHP で動かす方法

### 共通

下記の手順でサーバーが無事立ち上がったら [`index.html`](https://github.com/coderdojo-japan/dojocon-template.coderdojo.jp/blob/main/index.html) を修正し、[http://localhost:8080/](http://localhost:8080/) にアクセスして修正内容を確認します。

### Ruby で動かす方法

```shell
Expand All @@ -16,8 +20,6 @@ $ ruby --version
$ ruby -run -e httpd
```

無事に立ち上がったら [`index.html`](https://github.com/coderdojo-japan/dojocon-template.coderdojo.jp/blob/main/index.html) を修正し、[http://localhost:8080/](http://localhost:8080/) にアクセスして修正内容を確認します。

<br>


Expand All @@ -28,11 +30,9 @@ $ ruby -run -e httpd
$ python --version

# ローカルサーバーを立ち上げる
$ python -m SimpleHTTPServer
$ python -m SimpleHTTPServer 8080
```

無事に立ち上がったら [`index.html`](https://github.com/coderdojo-japan/dojocon-template.coderdojo.jp/blob/main/index.html) を修正し、[http://localhost:8000/](http://localhost:8000/) にアクセスして修正内容を確認します。

<br>


Expand All @@ -46,8 +46,6 @@ $ npx --version
$ npx http-server
```

無事に立ち上がったら [`index.html`](https://github.com/coderdojo-japan/dojocon-template.coderdojo.jp/blob/main/index.html) を修正し、[http://localhost:8080/](http://localhost:8080/) にアクセスして修正内容を確認します。

<br>


Expand All @@ -58,11 +56,9 @@ $ npx http-server
$ php --version

# ローカルサーバーを立ち上げる
$ php -S localhost:8000
$ php -S localhost:8080
```

無事に立ち上がったら [`index.html`](https://github.com/coderdojo-japan/dojocon-template.coderdojo.jp/blob/main/index.html) を修正し、[http://localhost:8000/](http://localhost:8000/) にアクセスして修正内容を確認します。

<br>


Expand Down

0 comments on commit 2deed40

Please sign in to comment.