Skip to content

Commit

Permalink
Removing ruby web server
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady committed Oct 9, 2015
1 parent 48fa658 commit 251e394
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 118 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
.deploy
.bundle
vendor
dist
working
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

70 changes: 0 additions & 70 deletions Gemfile.lock

This file was deleted.

11 changes: 0 additions & 11 deletions Guardfile

This file was deleted.

22 changes: 4 additions & 18 deletions bin/run_server
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,10 @@ abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
bin_dir=`dirname $abspath`
root_dir=`dirname $bin_dir`

if [[ ! -x `which ruby` ]]; then
echo "Can't find Ruby. You need Ruby 2.0 or later to use this server."
if [[ ! -x `which python` ]]; then
echo "Can't find Python. You need Python 2.7 or later to use this server."
exit 1
fi

bundle_path=`which bundle`

if [[ ! -x $bundle_path ]]; then
bundle_path=`find ~/.gem -name bundler | head -n 1`
fi

if [[ ! -x $bundle_path ]]; then
echo "Can't find bundler (version 1.6 or later). You can run this command to install bundler:"
echo ""
echo " gem install --user-install bundler"
exit 1
fi

cd $root_dir
$bundle_path install --path vendor/bundle
$bundle_path exec guard
cd $root_dir/public
exec python -m SimpleHTTPServer 9292
9 changes: 0 additions & 9 deletions config.ru

This file was deleted.

0 comments on commit 251e394

Please sign in to comment.