From 0082ff44492527677e833527874410475441ea13 Mon Sep 17 00:00:00 2001 From: Yoshiki Takagi Date: Sat, 20 Mar 2021 12:26:46 +0900 Subject: [PATCH] Add bin/console --- Dockerfile | 2 +- bin/console | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 bin/console diff --git a/Dockerfile b/Dockerfile index 15b2b50b..a98df785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ RUN bundle -j 4 COPY . . -CMD ['bundle', 'console'] +CMD ["bin/console"] diff --git a/bin/console b/bin/console new file mode 100755 index 00000000..3f34ba1f --- /dev/null +++ b/bin/console @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require "bundler/setup" +require "timecop" + +# You can add fixtures and/or initialization code here to make experimenting +# with your gem easier. You can also use a different console, if you like. + +# (If you use this, don't forget to add pry to your Gemfile!) +# require "pry" +# Pry.start + +require "irb" +IRB.start(__FILE__)