Skip to content

Commit

Permalink
Updates to use STI build
Browse files Browse the repository at this point in the history
  • Loading branch information
maria committed Nov 5, 2014
1 parent 0ac5f86 commit f61761b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ FROM openshift/ruby-20-centos
RUN gem install sinatra sinatra-activerecord mysql2 --no-ri --no-rdoc

ADD . /tmp/

USER root

RUN chown -R ruby:ruby /tmp/*

USER ruby

WORKDIR /tmp/

EXPOSE 8080
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'config/environments'
require_relative 'config/database'
require_relative 'models'
require 'sinatra/activerecord/rake'

2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'sinatra'
require_relative 'config/environments'
require_relative 'config/database'
require_relative 'models'

set :bind, '0.0.0.0'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion db/migrate/20141102191902_create_key_pair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ def up
end

def down
drop_table :keypairs
drop_table :key_pairs
end
end
2 changes: 1 addition & 1 deletion models.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'active_record'

class KeyPair < ActiveRecord::Base
self.primary_key='key'
self.primary_key = 'key'
end

0 comments on commit f61761b

Please sign in to comment.