Skip to content

Commit 2877572

Browse files
committed
added specific database to connect to
1 parent fee9520 commit 2877572

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
require './data/sites.rb'
1313
require './data/dragon.rb'
1414

15+
# Database details
16+
@host = "wvulqmhjj9tbtc1w.cbetxkdyhwsb.us-east-1.rds.amazonaws.com"
17+
@username = "ofyslai9g5zjznpq"
18+
@password = "tvgm1fkpfh8iq5gp"
19+
@db = "vew7rq9f0fviu36f"
20+
1521
# DB Connection initiated
16-
DB = Mysql2::Client.new(:host => "wvulqmhjj9tbtc1w.cbetxkdyhwsb.us-east-1.rds.amazonaws.com", :username => "ofyslai9g5zjznpq", :password => "tvgm1fkpfh8iq5gp")
22+
DB = Mysql2::Client.new(:host => @host, :username => @username, :password => @password, :database => @db)
1723

1824
# Disables rack protection because of false positives
1925
# that were blocking connections to home page

0 commit comments

Comments
 (0)