Skip to content

Commit 0de87fb

Browse files
committed
add files for boot up
1 parent a44d876 commit 0de87fb

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

config.ru

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is used by Rack-based servers to start the application.
2+
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
run Rubykaigi::Application
5+

config/application.rb

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require File.expand_path('../boot', __FILE__)
2+
3+
require 'rails/all'
4+
5+
# If you have a Gemfile, require the gems listed there, including any gems
6+
# you've limited to :test, :development, or :production.
7+
Bundler.require(:default, Rails.env) if defined?(Bundler)
8+
9+
module Rubykaigi
10+
class Application < ::Rails::Application
11+
end
12+
end

script/rails

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env ruby
2+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3+
4+
APP_PATH = File.expand_path('../../config/application', __FILE__)
5+
require File.expand_path('../../config/boot', __FILE__)
6+
require 'rails/commands'

0 commit comments

Comments
 (0)