Skip to content

Commit 06f82ce

Browse files
committed
add bin/server script
1 parent 4b4ef68 commit 06f82ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/server

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
parentdir="$(dirname "$DIR")"
5+
pid="$parentdir/tmp/pids/server.pid"
6+
if [ -f $pid ]; then
7+
rm $pid
8+
fi
9+
fuser -k -n tcp 3000
10+
rails server -b 0.0.0.0

0 commit comments

Comments
 (0)