Skip to content

Commit

Permalink
Renamed runlocal.sh to run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Feb 26, 2015
1 parent c3595af commit 22782d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

if ENV['RACK_ENV']=="production"
while !self.connect_to_database_prod
puts "Connecting to production database...\n"
puts "Connecting to production database (#{ENV['DATABASE_SERVICE_HOST']})...\n"
sleep 0.1
end
else
Expand Down
14 changes: 14 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

export RACK_ENV="production"

# Helper script to run the sample app locally, assumes a local mysql instance with a
# login of root/root
if [ -z "${MYSQL_DATABASE}" ]; then
export DATABASE_SERVICE_HOST=localhost
export DATABASE_SERVICE_PORT=3306
export MYSQL_DATABASE=test
export MYSQL_ROOT_PASSWORD=root
fi

bundle exec ruby app.rb
12 changes: 0 additions & 12 deletions runlocal.sh

This file was deleted.

0 comments on commit 22782d5

Please sign in to comment.