我有一个关于将露营网络应用程序作为 Windows Server 2008 服务运行的问题。到目前为止,我们已经按照这篇文章中的描述完成了:http ://www.dixis.com/?p=140 ,包括 windows server 2008 的步骤。但是,服务启动并运行,但应用程序没有被触发。
我们像这样使用机架配置文件:
$LOAD_PATH << File.expand_path('..')
require './review'
rack_log = File.new("rack_log_file.txt", "a+")
use Rack::CommonLogger, rack_log
Review.create
run Review
如果我们在命令行中使用命令“ thin start
”启动该应用程序,它运行良好。
注册表项设置:
Application=c:\RailsInstaller\Ruby1.9.3\bin\ruby.exe
AppDirectory=c:\camping\review
AppParameters=c:\camping\review\thin start -p 3301
任何人都可以帮助解决这个问题吗?
问候,塞巴