Skip to content

Commit

Permalink
Add a bin/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed May 17, 2016
1 parent 17e324a commit ae5103b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The official RubyGems blog.
Setup
=====

Make sure you have jekyll installed (`gem install bundler; bundle`), and run:
Run `bin/setup` to install Bundler + all the gems you'll need to get started. Then:

$ jekyll serve

Expand Down
17 changes: 17 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
set -e
export PATH="$(dirname "$0")/../bin:$PATH" # Use binstubs

if [ "$1" = "-v" ]; then
exec 3>&1
else
exec 3>/dev/null
fi

# Install dependencies
echo "Installing libraries and plugins"
{ gem list -i bundler || gem install bundler
bundle
} >&3 2>&1

echo "Done! Run \`bundle exec jekyll serve\` to start the server, then visit http://localhost:4000/"

0 comments on commit ae5103b

Please sign in to comment.