Skip to content

Commit cffed1c

Browse files
committed
First version with Sinatra
0 parents  commit cffed1c

File tree

6 files changed

+44
-0
lines changed

6 files changed

+44
-0
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'sinatra'

Gemfile.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
rack (1.6.4)
5+
rack-protection (1.5.3)
6+
rack
7+
sinatra (1.4.7)
8+
rack (~> 1.5)
9+
rack-protection (~> 1.4)
10+
tilt (>= 1.3, < 3)
11+
tilt (2.0.5)
12+
13+
PLATFORMS
14+
ruby
15+
16+
DEPENDENCIES
17+
sinatra
18+
19+
BUNDLED WITH
20+
1.13.0

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Node.js / Boilerplate
2+
3+
This template will help you through the process of deploying a Node.js container.
4+
5+
> [Visit the documentation to learn how to start using the Node.js container.](http://wedeploy.com/docs/other/nodejs.html)

app.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'sinatra'
2+
3+
class HelloWorldApp < Sinatra::Base
4+
get '/' do
5+
"Hello, world!"
6+
end
7+
end

config.ru

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require './app'
2+
run HelloWorldApp

container.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"id": "ruby",
3+
"type": "wedeploy/ruby",
4+
"hooks": {
5+
"build": "bundle install"
6+
}
7+
}

0 commit comments

Comments
 (0)