2019-08-14 09:48:44 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
|
|
|
|
ENV['NODE_ENV'] ||= 'development'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
require 'pathname'
|
|
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
|
|
|
Pathname.new(__FILE__).realpath)
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler/setup'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
require 'webpacker'
|
|
|
|
require 'webpacker/webpack_runner'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-20 08:47:26 +00:00
|
|
|
APP_ROOT = File.expand_path('..', __dir__)
|
2019-08-14 09:48:44 +00:00
|
|
|
Dir.chdir(APP_ROOT) do
|
|
|
|
Webpacker::WebpackRunner.run(ARGV)
|
|
|
|
end
|