Skip to content

Commit

Permalink
Combined approaches from refinery#1445
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Mar 16, 2012
1 parent 0b99789 commit 02e53fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/refinery/edge.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
require 'rbconfig'

ExecJS::Runtimes.autodetect rescue gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
# We want to ensure that you have an ExecJS runtime available!
begin
run 'bundle install'
require 'execjs'
::ExecJS::Runtimes.autodetect
rescue
gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
end

append_file 'Gemfile' do
"
Expand Down

0 comments on commit 02e53fe

Please sign in to comment.