diff --git a/project_template/app.rb b/project_template/app.rb index d026e066..25356ecc 100644 --- a/project_template/app.rb +++ b/project_template/app.rb @@ -61,6 +61,9 @@ # ProconBypassMan::ExternalInput::Channels::SerialPortChannel.new(device_path: '/dev/serial0', baud_rate: 9600), # ProconBypassMan::ExternalInput::Channels::TCPIPChannel.new(port: 9000), # ] +else + require 'bundler' + Bundler.require(:default) end ProconBypassMan.run(setting_path: "/usr/share/pbm/current/setting.yml") diff --git a/project_template/app.rb.erb b/project_template/app.rb.erb index 2081cdd8..21479222 100644 --- a/project_template/app.rb.erb +++ b/project_template/app.rb.erb @@ -66,6 +66,9 @@ ProconBypassMan.configure do |config| # ProconBypassMan::ExternalInput::Channels::SerialPortChannel.new(device_path: '/dev/serial0', baud_rate: 9600), # ProconBypassMan::ExternalInput::Channels::TCPIPChannel.new(port: 9000), # ] +else + require 'bundler' + Bundler.require(:default) end ProconBypassMan.run(setting_path: "/usr/share/pbm/current/setting.yml")