2018-07-12 11:50:47 +02:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
2021-09-16 15:37:53 +02:00
|
|
|
ENV["NODE_ENV"] ||= "development"
|
2018-07-12 11:50:47 +02:00
|
|
|
|
|
|
|
require "pathname"
|
|
|
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
|
|
Pathname.new(__FILE__).realpath)
|
|
|
|
|
|
|
|
require "bundler/setup"
|
|
|
|
|
|
|
|
require "webpacker"
|
|
|
|
require "webpacker/webpack_runner"
|
2021-09-16 15:37:53 +02:00
|
|
|
|
|
|
|
APP_ROOT = File.expand_path("..", __dir__)
|
|
|
|
Dir.chdir(APP_ROOT) do
|
|
|
|
Webpacker::WebpackRunner.run(ARGV)
|
|
|
|
end
|