Sha256: b4b10c00168d9627762a24ee1fb5035ac5f7b1a8c38cf075abe2b04e410f925e

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

#!/bin/bash

ret=`git init .`
regexp=".*empty.*"
if [[ $ret =~ $regexp ]]; then
    echo "git add ."
    x=`git add .`

    echo "git commit -m 'init'"
    x=`git commit -m 'init'`
fi

DESC="web server"

case "$1" in
    start)
        echo "Starting $DESC."
        rackup
        ;;

    stop)
        echo "Stopping $DESC."
        cat rack.pid | xargs kill
        ;;

    restart)
        echo "First, stopping $DESC."
        cat rack.pid | xargs kill
        echo "And then, starting $DESC."
        rackup
        ;;

esac

exit 0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dadablog-0.0.3 lib/dadablog/generators/create/server.sh
dadablog-0.0.2 lib/dadablog/generators/create/server.sh