summaryrefslogtreecommitdiff
path: root/bin/devel
diff options
context:
space:
mode:
Diffstat (limited to 'bin/devel')
-rwxr-xr-xbin/devel/db-drop7
-rwxr-xr-xbin/devel/generate24
-rwxr-xr-xbin/devel/start6
-rwxr-xr-xbin/devel/stop6
4 files changed, 42 insertions, 1 deletions
diff --git a/bin/devel/db-drop b/bin/devel/db-drop
new file mode 100755
index 0000000..06e24dc
--- /dev/null
+++ b/bin/devel/db-drop
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+bindir="$(dirname "$(dirname "$(readlink -f "$0")")")"
+PATH=$bindir:$PATH
+
+set -e
+rake db:drop
+rake db:setup
diff --git a/bin/devel/generate b/bin/devel/generate
index d71b454..077f18e 100755
--- a/bin/devel/generate
+++ b/bin/devel/generate
@@ -1,8 +1,30 @@
#!/usr/bin/env bash
+# Copyright (C) 2014 Andrew Murrell
+# Copyright (C) 2014 Davis Webb
+# Copyright (C) 2014 Guntas Grewal
+# Copyright (C) 2014 Luke Shumaker
+# Copyright (C) 2014 Nathaniel Foy
+# Copyright (C) 2014 Tomer Kimia
+#
+# This file is part of Leaguer.
+#
+# Leaguer is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Leaguer is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the Affero GNU General Public License
+# along with Leaguer. If not, see <http://www.gnu.org/licenses/>.
+
# The generate.sh bash file is used to generate all of the necessary
# .rb files to run the website
-
+#
# To modify it and update the app do the following:
# 1. Take care of uncommitted files
# 2. Run `git checkout clean2`
diff --git a/bin/devel/start b/bin/devel/start
new file mode 100755
index 0000000..2cb44e7
--- /dev/null
+++ b/bin/devel/start
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+bindir="$(dirname "$(dirname "$(readlink -f "$0")")")"
+PATH=$bindir:$PATH
+
+rails server --daemon "$@"
+delayed_job start
diff --git a/bin/devel/stop b/bin/devel/stop
new file mode 100755
index 0000000..e2f7858
--- /dev/null
+++ b/bin/devel/stop
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+srcdir="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")"
+PATH=${srcdir}/bin:$PATH
+
+kill $(<"${srcdir}/tmp/pids/server.pid")
+delayed_job stop