lib/origen/commands/web.rb in origen-0.0.6 vs lib/origen/commands/web.rb in origen-0.0.8
- old
+ new
@@ -41,10 +41,11 @@
opts.on('-r', '--remote', 'Use in conjunction with the compile command to deploy files to a remote web server') { options[:remote] = true }
opts.on('-a', '--api', 'Generate API documentation after compiling') { options[:api] = true }
opts.on('--archive ID', String, 'Archive the documents after compiling or deploying remotely') { |id| options[:archive] = id }
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
+ opts.on('--no-serve', "Don't serve the website after compiling without the remote option") { options[:no_serve] = true }
app_options.each do |app_option|
opts.on(*app_option) {}
end
opts.separator ''
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
@@ -183,11 +184,13 @@
end
end
end
_deployer.deploy_archive(options[:archive]) if options[:archive]
else
- Dir.chdir "#{Origen.root}/web/output" do
- _start_server
+ unless options[:no_serve]
+ Dir.chdir "#{Origen.root}/web/output" do
+ _start_server
+ end
end
end
when 'deploy'
Origen.app.load_target!