summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-26 20:35:43 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-26 20:35:43 -0400
commit2d0fe1a4197e70cb99f4285a8b32a645914d8beb (patch)
treea1d4270924d24dd441bbd95db980952ea83d9223 /start
parent78df502c74525cee987e551fc82e91595e63ed01 (diff)
Wrote a script the start the server called start deleted the old one. The new one has 2 flag options -c and -s these correspond to starting the console or server respectively.
Diffstat (limited to 'start')
-rwxr-xr-xstart11
1 files changed, 11 insertions, 0 deletions
diff --git a/start b/start
new file mode 100755
index 0000000..9ee8eba
--- /dev/null
+++ b/start
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ $1 == "-c" ]; then
+ bundle exec rails c
+fi
+if [ $1 == "-s" ]; then
+ bundle exec rails s
+fi
+
+#echo "Only use: start -c or start -s. Don't be a jackass."
+