Skip to content

Commit

Permalink
Add env variable fix for production
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaray committed Nov 12, 2017
1 parent 1c2d595 commit 6ee6a62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ group :test do
gem 'minitest'
gem 'minitest-rg'
gem 'rack-test'
gem 'rake'
gem 'simplecov'
gem 'vcr'
gem 'webmock'
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Api < Roda
Econfig.env = environment.to_s
Econfig.root = '.'

configure :development do
configure :development do
# Allows running reload! in pry to restart entire app
def self.reload!
exec 'pry -r ./spec/test_load_all'
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/gitrepo/git_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ class LocalRepo
def initialize(remote, repostore_path)
@remote = remote
@repo_path = [repostore_path, @remote.unique_id].join('/')
clone_remote unless exists?
end

def clone_remote(remote)
def clone_remote
@remote.local_clone(@repo_path)
self
end
Expand Down

0 comments on commit 6ee6a62

Please sign in to comment.