Skip to content

Commit

Permalink
Merge pull request openshift#27 from mfojtik/rename
Browse files Browse the repository at this point in the history
Renamed runlocal.sh to run.sh
  • Loading branch information
bparees committed Feb 26, 2015
2 parents c3595af + 68b1463 commit 3849de4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .sti/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The default environment for this Ruby application is production
RACK_ENV=production
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
12 changes: 12 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# 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 3849de4

Please sign in to comment.