lib/ember-cli/app.rb in ember-cli-rails-0.0.14 vs lib/ember-cli/app.rb in ember-cli-rails-0.0.15

- old
+ new

@@ -106,11 +106,11 @@ version = dev_dependencies.fetch("ember-cli").split("-").first unless match_version?(version, EMBER_CLI_VERSION) fail <<-MSG.strip_heredoc EmberCLI Rails require ember-cli NPM package version to be - #{requirement} to work properly. From within your EmberCLI directory + #{EMBER_CLI_VERSION} to work properly. From within your EmberCLI directory please update your package.json accordingly and run: $ npm install MSG @@ -130,11 +130,13 @@ MSG end end def symlink_to_assets_root - symlink_path = dist_path.join("assets") - assets_path.join(name).make_symlink symlink_path unless symlink_path.exist? + assets_path.join(name).make_symlink dist_path.join("assets") + rescue Errno::EEXIST + # Sometimes happens when starting multiple Unicorn workers. + # Ignoring... end def add_assets_to_precompile_list Rails.configuration.assets.precompile << /(?:\/|\A)#{name}\// end