Commit a3466743 authored by Alessio Caiazza's avatar Alessio Caiazza

Add required files to allow herokuish buildpack detection

parent d88102fe
FROM ruby:2.4.0-alpine
FROM ruby:2.4.1-alpine
ADD ./ /app/
WORKDIR /app
ENV PORT 5000
EXPOSE 5000
CMD ["sh", "-c", "while :; do ruby ./server.rb; done"]
\ No newline at end of file
CMD ["sh", "-c", "while :; do ruby ./server.rb; done"]
source 'https://rubygems.org'
ruby '2.4.1'
gem 'minitest', '~> 5.10.2', group: :test
gem 'rake'
GEM
remote: https://rubygems.org/
specs:
minitest (5.10.2)
rake (12.0.0)
PLATFORMS
ruby
DEPENDENCIES
minitest (~> 5.10.2)
rake
RUBY VERSION
ruby 2.4.1p111
BUNDLED WITH
1.15.4
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs.push('.')
t.test_files = FileList['test/*_spec.rb']
t.verbose = true
end
require 'webrick'
require 'securerandom'
server = WEBrick::HTTPServer.new :Port => 5000
server = WEBrick::HTTPServer.new :Port => ENV.fetch('PORT'){ 5000 }
#Return a successful Hello World response.
server.mount_proc '/' do |request, response|
......@@ -16,4 +16,4 @@ server.mount_proc '/error' do |request, response|
sleep 1.0+SecureRandom.random_number
end
server.start
\ No newline at end of file
server.start
require 'minitest'
require 'minitest/spec'
require 'minitest/autorun'
describe 'minimal-ruby-app' do
it 'must be awesome' do
true.must_be_same_as(true)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment