Skip to content

Commit

Permalink
Update bin scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Oct 23, 2024
1 parent ced278d commit 948e5d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
7 changes: 2 additions & 5 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

require "bundler/setup"
require "hotsheet"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

require "irb"
IRB.start(__FILE__)

IRB.start __FILE__
15 changes: 6 additions & 9 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.
# frozen_string_literal: true

ENGINE_ROOT = File.expand_path("..", __dir__)
ENGINE_PATH = File.expand_path("../lib/hotsheet/engine", __dir__)
APP_PATH = File.expand_path("../test/dummy/config/application", __dir__)

# Set up gems listed in the Gemfile.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
ENV["BUNDLE_GEMFILE"] ||= File.expand_path "../Gemfile", __dir__
ENGINE_ROOT = File.expand_path "..", __dir__
ENGINE_PATH = File.expand_path "../lib/hotsheet/engine", __dir__
APP_PATH = File.expand_path "../test/dummy/config/application", __dir__

require "bundler/setup" if File.exist? ENV["BUNDLE_GEMFILE"]
require "rails/all"
require "rails/engine/commands"

0 comments on commit 948e5d7

Please sign in to comment.