From a304337f9a2f13f17491a8e5560268e7c5812cbe Mon Sep 17 00:00:00 2001 From: Akiko Takano Date: Wed, 6 May 2020 18:33:56 +0900 Subject: [PATCH] Fix cmd error (not rails s but bundle exec rails s to start Redmine.) --- Dockerfile | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d686766..c394cfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,8 +43,9 @@ RUN gem update bundler RUN bundle config set without 'postgresql rmagick mysql' RUN bundle install RUN bundle exec rake db:migrate && bundle exec rake generate_secret_token +RUN bundle exec rails runner public/themes/redmine_theme_kodomo_midori/miscs/sample.rb WORKDIR /app/redmine EXPOSE 3000 -CMD ["rails", "server", "-b", "0.0.0.0"] +CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"] diff --git a/docker-compose.yml b/docker-compose.yml index 9c94743..48176f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,8 @@ services: web: build: context: . - image: redmine_sqlite3 - container_name: redmine_sqlite3 + image: redmine_theme_kodomo_midori + container_name: redmine_theme_kodomo_midori command: > bash -c "bundle && bundle exec rake db:migrate &&