Permalink
Browse files

Create barebones Sinatra app

  • Loading branch information...
1 parent 2fdd329 commit 410c787af227f7240680356774122144a6f6bbed @justincampbell justincampbell committed Jun 5, 2012
Showing with 44 additions and 3 deletions.
  1. +0 −1 .gitignore
  2. +1 −0 .rvmrc
  3. +8 −0 Gemfile
  4. +21 −0 Gemfile.lock
  5. +2 −1 Procfile
  6. +2 −1 README.md
  7. +4 −0 app.rb
  8. +6 −0 config.ru
View
@@ -1 +0,0 @@
-node_modules/
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm 1.9.3
View
@@ -0,0 +1,8 @@
+source :rubygems
+
+gem 'sinatra'
+
+group :development do
+ gem 'foreman'
+end
+
View
@@ -0,0 +1,21 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ foreman (0.46.0)
+ thor (>= 0.13.6)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
+ sinatra (1.3.2)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ thor (0.15.2)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ foreman
+ sinatra
View
@@ -1 +1,2 @@
-web: node server.js
+web: rackup
+
View
@@ -34,7 +34,7 @@ git push heroku master
heroku addons:add redistogo:nano
heroku config:add JENKINS_URL=http://jenkins.mycompany.com
-heroku config:add NODE_ENV=production
+heroku config:add RACK_ENV=production
heroku ps:dynos 1
```
@@ -111,3 +111,4 @@ curl -u "MyCompany-bot:password" https://api.github.com/hub \
-Fhub.topic=https://github.com/MyCompany/FooBar/events/pull_request \
-Fhub.callback=http://mycompany-jenkins-comments.herokuapp.com/github/post_receive
```
+
View
4 app.rb
@@ -0,0 +1,4 @@
+get '/' do
+ "Jenkins Comments"
+end
+
View
@@ -0,0 +1,6 @@
+require 'bundler/setup'
+Bundler.require(:default)
+
+require './app'
+run Sinatra::Application
+

0 comments on commit 410c787

Please sign in to comment.