# How to start and handle soap4r server in production mode?

**URL:** <https://www.ruby-forum.com/t/how-to-start-and-handle-soap4r-server-in-production-mode/142486>\
**Category:** Rails\
**Created:** [July 8, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/how-to-start-and-handle-soap4r-server-in-production-mode/142486 "2008-07-08T13:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukeerthiadiga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Post date:** [July 8, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/how-to-start-and-handle-soap4r-server-in-production-mode/142486/1 "2008-07-08T13:32:05Z")

</div>

In console i m able to start soap4r server

require ‘soap/rpc/standaloneServer’

server = SymptomCheckerServer.new(‘hws’, ‘urn:hws’, ‘192.168.1.201’,  
6565)  
trap(:INT) do  
server.shutdown  
end  
server.start

and get response of soap

how can i do in production mode?  
is there any possibility to put code in environment.rb  
so that in backend the server will be running

Thanks in advance
