2019-08-14 09:48:44 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2019-10-02 06:13:41 +00:00
|
|
|
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
|
|
|
|
ENV['NODE_ENV'] ||= 'development'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-02 06:13:41 +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-02 06:13:41 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler/setup'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-02 06:13:41 +00:00
|
|
|
require 'webpacker'
|
|
|
|
require 'webpacker/dev_server_runner'
|
2019-08-14 09:48:44 +00:00
|
|
|
|
2019-10-02 06:13:41 +00:00
|
|
|
APP_ROOT = File.expand_path('..', __dir__)
|
2019-08-14 09:48:44 +00:00
|
|
|
Dir.chdir(APP_ROOT) do
|
|
|
|
Webpacker::DevServerRunner.run(ARGV)
|
|
|
|
end
|