diff --git a/.gitignore b/.gitignore index 5e857c0..db2c0ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ src/db/ vendor/ +.bundle/ src/public/auctions/ /.yardoc/ /_yardoc/ diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..d29329b --- /dev/null +++ b/config.ru @@ -0,0 +1,2 @@ +require_relative "./src/app" +run Sinatra::Application diff --git a/src/lib/database.rb b/src/lib/database.rb index ae5747c..f6df8b6 100644 --- a/src/lib/database.rb +++ b/src/lib/database.rb @@ -15,7 +15,7 @@ class EntityModel # Initializes the table on startup # @return [void] def self.init_table - sql_file = "sql/tables/#{self.name}.sql" + sql_file = File.dirname(__FILE__) + "/../sql/tables/#{self.name}.sql" begin q = File.read sql_file # get SQL script diff --git a/src/public/avatars/1.png b/src/public/avatars/1.png index d0984ba..d8a103c 100644 Binary files a/src/public/avatars/1.png and b/src/public/avatars/1.png differ