Skip to content

Commit b1ba834

Browse files
committed
Added Rails bin
1 parent eb3470e commit b1ba834

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

bin/rails

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
APP_PATH = File.expand_path('../config/application', __dir__)
3+
require_relative '../config/boot'
4+
require 'rails/commands'

config/application.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Bundler.require
33
require "rails/all"
44

5+
abort "No DATABASE_URL" unless ENV["DATABASE_URL"]
6+
57
module BlazerSolo
68
class Application < Rails::Application
79
routes.append do

config/boot.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2+
3+
require 'bundler/setup' # Set up gems listed in the Gemfile.

0 commit comments

Comments
 (0)