Skip to content

Commit

Permalink
some deployent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
razum2um committed May 8, 2014
1 parent dbe639e commit 2998a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ namespace :generate do

desc "generate a bunch of stuff with generators"
task :stuff do
in_lurker_app "bundle install"
if ENV['BUNDLE_GEMFILE'].to_s.match(/Gemfile(32|40)\.ci$/)
in_lurker_app "bundle install"
%w[rake rspec-core spring].each do |gem|
in_lurker_app "bundle binstubs #{gem}"
end
Expand Down
10 changes: 2 additions & 8 deletions templates/lurker_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@
gem 'pry-debugger', require: false
gem 'pry-stack_explorer', require: false
gem 'unicorn', group: :production
gem 'therubyracer', group: :production

append_to_file 'Gemfile' do
<<-CODE
# new line above is important
lurker_file = File.expand_path('../../../lib/lurker.rb', __FILE__)
if File.exists?(lurker_file)
# run within specs
gem 'lurker', '~> 0', path: "#{File.expand_path('../../../lurker', __FILE__)}"
else
# run at heroku
gem 'lurker', github: 'razum2um/lurker', branch: 'master'
end
gem 'lurker', github: 'razum2um/lurker', branch: 'master'
CODE
end

Expand Down

0 comments on commit 2998a86

Please sign in to comment.