New scripts to serve across lan (#184)

* New scripts to server across lan

* Updated README.md
This commit is contained in:
Kartik Arora 2016-07-31 20:33:11 +05:30 committed by Panos Sakkos
parent 7cfbda8762
commit 26678401b7
4 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View file

@ -16,3 +16,4 @@ test/
_deploy/*
Rakefile
.jekyll-metadata
/.idea/

View file

@ -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

4
scripts/serve-lan Normal file
View file

@ -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 ""

View file

@ -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 ""