Added Ruby packaging support.
This commit is contained in:
7
pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app
Normal file
7
pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app
Normal file
@@ -0,0 +1,7 @@
|
||||
app = Proc.new do |env|
|
||||
['200', {
|
||||
'Content-Type' => 'text/plain',
|
||||
}, ["Hello from Unit running with Ruby #{RUBY_VERSION}!\n\n"]]
|
||||
end
|
||||
|
||||
run app
|
||||
16
pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-config
Normal file
16
pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-config
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"applications": {
|
||||
"example_ruby": {
|
||||
"type": "ruby",
|
||||
"user": "nobody",
|
||||
"processes": 2,
|
||||
"script": "/usr/share/doc/unit-ruby/examples/ruby-app.ru"
|
||||
}
|
||||
},
|
||||
|
||||
"listeners": {
|
||||
"*:8700": {
|
||||
"application": "example_ruby"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user