summaryrefslogtreecommitdiff
path: root/bin/rails-engine
blob: 9b4844efa6a16c57bf40f3bc23c28aa35e07f34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.

ENGINE_ROOT = File.expand_path('..', __dir__)
ENGINE_PATH = File.expand_path('../lib/solidus_subscriptions/engine', __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'])

require 'rails/all'
require 'rails/engine/commands'