New scripts to serve across lan (#184)
* New scripts to server across lan * Updated README.md
This commit is contained in:
parent
7cfbda8762
commit
26678401b7
4 changed files with 19 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -16,3 +16,4 @@ test/
|
|||
_deploy/*
|
||||
Rakefile
|
||||
.jekyll-metadata
|
||||
/.idea/
|
||||
14
README.md
14
README.md
|
|
@ -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
4
scripts/serve-lan
Normal 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 ""
|
||||
4
scripts/serve-lan-production
Normal file
4
scripts/serve-lan-production
Normal 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 ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue