Skip to content

Commit 83e36aa

Browse files
committed
404 and post-receive example
1 parent c807646 commit 83e36aa

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

404.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
---
4+
<main class="landing">
5+
<section class="front-content">
6+
Page not found :(
7+
</section>
8+
</main>
9+

post-receive

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
PATH="$HOME/.rbenv/bin:$PATH"
4+
PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
5+
eval "$(rbenv init -)"
6+
7+
GIT_REPO=$HOME/danielliu
8+
TEMP_GIT_CLONE=/tmp/danielliu
9+
GEMFILE=$TEMP_GIT_CLONE/Gemfile
10+
PUBLIC_WWW=/var/www/danielliu
11+
12+
git clone $GIT_REPO $TEMP_GIT_CLONE
13+
BUNDLE_GEMFILE=$GEMFILE bundle install
14+
BUNDLE_GEMFILE=$GEMFILE bundle exec jekyll build -s $TEMP_GIT_CLONE -d $PUBLIC_WWW
15+
rm -rf $TEMP_GIT_CLONE
16+
exit

0 commit comments

Comments
 (0)