Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create barebones Sinatra app

  • Loading branch information...
commit 410c787af227f7240680356774122144a6f6bbed 1 parent 2fdd329
@justincampbell justincampbell authored
View
1  .gitignore
@@ -1 +0,0 @@
-node_modules/
View
1  .rvmrc
@@ -0,0 +1 @@
+rvm 1.9.3
View
8 Gemfile
@@ -0,0 +1,8 @@
+source :rubygems
+
+gem 'sinatra'
+
+group :development do
+ gem 'foreman'
+end
+
View
21 Gemfile.lock
@@ -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
3  Procfile
@@ -1 +1,2 @@
-web: node server.js
+web: rackup
+
View
3  README.md
@@ -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
6 config.ru
@@ -0,0 +1,6 @@
+require 'bundler/setup'
+Bundler.require(:default)
+
+require './app'
+run Sinatra::Application
+
Please sign in to comment.
Something went wrong with that request. Please try again.