Skip to content

Commit

Permalink
use set to generate a temporarily modified config for local testing i…
Browse files Browse the repository at this point in the history
…nstead of requiring the user to modify the config to test locally
  • Loading branch information
tfoote committed Apr 27, 2017
1 parent b7c293d commit 6b63b67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
_site
node_modules
_drafts
_drafts
localtest_config.yml
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Site settings
description: An index of ROS Robots
baseurl: "" # the subpath of your site, e.g. /blog
#url: "http://localhost:3000" # the base hostname & protocol for your site e.g. http://willianjusten.com.br
url: "http://robots.ros.org" # the base hostname & protocol for your site e.g. http://willianjusten.com.br

# User settings
Expand Down
4 changes: 2 additions & 2 deletions test_site.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set -o errexit

docker build -t "robotssite" .

docker run -v `pwd`:/tmp/jekyll -w /tmp/jekyll -i -t --rm --net=host robotssite
sed 's|http://robots.ros.org|http://localhost:3000|' _config.yml > localtest_config.yml
docker run -v `pwd`:/tmp/jekyll -v `pwd`/localtest_config.yml:/tmp/jekyll/_config.yml -w /tmp/jekyll -i -t --rm --net=host robotssite

0 comments on commit 6b63b67

Please sign in to comment.