Skip to content

Commit 1b61917

Browse files
committed
script/server, script/console for consistency
1 parent d53c766 commit 1b61917

5 files changed

Lines changed: 31 additions & 53 deletions

File tree

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ GEM
33
specs:
44
adsf (1.1.1)
55
rack (>= 1.0.0)
6-
blankslate (2.1.2.4)
7-
builder (3.1.3)
8-
coderay (1.0.6)
6+
blankslate (3.1.2)
7+
builder (3.2.2)
8+
coderay (1.0.9)
99
colored (1.2)
1010
cri (2.3.0)
1111
colored (>= 1.2)
12-
daemons (1.1.8)
13-
eventmachine (1.0.0.rc.4)
12+
daemons (1.1.9)
13+
eventmachine (1.0.3)
1414
ffi (1.0.11)
15-
fssm (0.2.9)
16-
kramdown (0.13.7)
17-
mime-types (1.18)
15+
fssm (0.2.10)
16+
kramdown (0.13.8)
17+
mime-types (1.23)
1818
nanoc (3.4.3)
1919
cri (~> 2.2)
2020
nokogiri (1.4.7)
21-
pygments.rb (0.2.12)
21+
pygments.rb (0.2.13)
2222
rubypython (~> 0.5.3)
23-
rack (1.4.1)
24-
rake (0.9.2.2)
23+
rack (1.5.2)
24+
rake (0.9.6)
2525
rubypython (0.5.3)
2626
blankslate (>= 2.1.2.3)
2727
ffi (~> 1.0.7)
28-
thin (1.4.1)
28+
thin (1.5.1)
2929
daemons (>= 1.0.9)
3030
eventmachine (>= 0.12.6)
3131
rack (>= 1.0.0)

script/bootstrap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
#!/bin/sh
2-
exec $0.rb "$@"
2+
3+
set -e
4+
5+
command -v bundle >/dev/null 2>&1 || { echo >&2 "Bundler required but not found: gem install bundler"; exit 1; }
6+
7+
echo "===> Bundling"
8+
bundle install --quiet "$@"

script/bootstrap.rb

Lines changed: 0 additions & 40 deletions
This file was deleted.

script/console

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
script/bootstrap
4+
5+
bundle console

script/server

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
script/bootstrap
4+
5+
nanoc autocompile -p 3002 -H thin
6+
7+

0 commit comments

Comments
 (0)