Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add very simple config.ru file

Enables you to run github-services using rackup or passenger for
example.

The config file is basically a copy of the github-services.rb startup
script with some small modifications:

- Removed the HOSTNAME global since I didn't know what it was used for
- Removed the :run => true setting, I assume it's not needed when using
  rackup or Passenger
- Removed the checking of available servers, since I guess rackup will
  do that for you
- Changed the run call to be compatible with a config.ru file
  • Loading branch information...
commit c8ffa19fd7cd8dc7565a61a055a3e185b524a963 1 parent 5321fd2
@sgronblo sgronblo authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 config.ru
View
7 config.ru
@@ -0,0 +1,7 @@
+require File.expand_path('../config/load', __FILE__)
+
+Service::App.set :environment => :production,
+ :port => ARGV.first || 8080,
+ :logging => true
+
+run Service::App
Please sign in to comment.
Something went wrong with that request. Please try again.