Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Fixed #204: added warning, and bailing out if deploying rest to files…
Browse files Browse the repository at this point in the history
…ystem
  • Loading branch information
grtjn authored and dmcassel committed Aug 28, 2014
1 parent e03a111 commit f37ac14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,11 @@ def deploy_rest
else
rest_modules_db = @properties['ml.modules-db']
end

if ['filesystem', 'file-system', '0'].include? rest_modules_db
logger.warn "\nWARN: Cannot deploy REST features to a REST-api running from file-system!\n"
return
end

if (@properties.has_key?('ml.rest-options.dir') && File.exist?(@properties['ml.rest-options.dir']))
prop_path = "#{@properties['ml.rest-options.dir']}/properties.xml"
Expand Down

0 comments on commit f37ac14

Please sign in to comment.