Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: unicorn
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (19 sloc) 0.431 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
require "bundler/setup"
require "rails"
require "action_controller/railtie"

$stdout.sync = true

class MyApp < Rails::Application
  routes.append do
    match "/" => "hello#index"
  end

  config.logger = Logger.new STDOUT
  config.secret_token = "asdf8sadfas8dlj2342b3bv23bvn23o3u"
  config.threadsafe!
end

class HelloController < ActionController::Base
  def index
    @time = Time.now
  end
end

MyApp.initialize!

run MyApp
Something went wrong with that request. Please try again.