2017-07-12 22:41:55 +08:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2018-11-22 05:05:33 +08:00
|
|
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
|
|
|
ENV["NODE_ENV"] ||= "development"
|
2017-07-12 22:41:55 +08:00
|
|
|
|
2018-11-22 05:05:33 +08:00
|
|
|
require "pathname"
|
|
|
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
|
|
Pathname.new(__FILE__).realpath)
|
2017-07-12 22:41:55 +08:00
|
|
|
|
2018-11-22 05:05:33 +08:00
|
|
|
require "rubygems"
|
|
|
|
require "bundler/setup"
|
2017-07-12 22:41:55 +08:00
|
|
|
|
2018-11-22 05:05:33 +08:00
|
|
|
require "webpacker"
|
|
|
|
require "webpacker/webpack_runner"
|
2019-07-02 19:30:13 +08:00
|
|
|
|
|
|
|
APP_ROOT = File.expand_path("..", __dir__)
|
|
|
|
Dir.chdir(APP_ROOT) do
|
|
|
|
Webpacker::WebpackRunner.run(ARGV)
|
|
|
|
end
|