Commit 7c9e07f70cf27e997e87e39727e657c3bb187638
1 parent
6b5fb240
Exists in
master
and in
28 other branches
Fix handling of arguments in ./script/production
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
script/production
@@ -8,8 +8,11 @@ fi | @@ -8,8 +8,11 @@ fi | ||
8 | 8 | ||
9 | export RAILS_ENV=production | 9 | export RAILS_ENV=production |
10 | 10 | ||
11 | -ACTION=$1 | ||
12 | -shift | 11 | +ACTION="$1" |
12 | +if [ -z "$ACTION" ]; then | ||
13 | + echo "usage: $0 start|stop|restart|run" | ||
14 | + exit 1 | ||
15 | +fi | ||
13 | 16 | ||
14 | clear_cache() { | 17 | clear_cache() { |
15 | if test -w ./public; then | 18 | if test -w ./public; then |