Skip to content

Commit

Permalink
New scripts to serve across lan (#184)
Browse files Browse the repository at this point in the history
* New scripts to server across lan

* Updated README.md
  • Loading branch information
kartikarora authored and le4ker committed Jul 31, 2016
1 parent 7cfbda8 commit 2667840
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ test/
_deploy/*
Rakefile
.jekyll-metadata
/.idea/
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,21 @@ The theme contains documentation in the form of [blog posts](https://panossakkos

First, you need to install jekyll and the dependencies of { Personal } by running:

````
```shell
./scripts/install
````
```

Then, you can build and serve your website by simply running:

````
```shell
./scripts/serve-production
````
```

To serve across lan (requires su to forward the port 4000 over lan):

```shell
./scripts/serve-lan-production
```

## Wiki

Expand Down
4 changes: 4 additions & 0 deletions scripts/serve-lan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo iptables -I INPUT -p tcp --dport 4000 -j ACCEPT
jekyll serve --watch --host "0.0.0.0" --baseurl ""
4 changes: 4 additions & 0 deletions scripts/serve-lan-production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo iptables -I INPUT -p tcp --dport 4000 -j ACCEPT
JEKYLL_ENV=production jekyll serve --host "0.0.0.0" --baseurl ""

0 comments on commit 2667840

Please sign in to comment.