Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from akiko-pusu/fix-cmd-error
Browse files Browse the repository at this point in the history
Fix cmd error (not rails s but bundle exec rails s to start Redmine.)
  • Loading branch information
akiko-pusu authored May 6, 2020
2 parents 4f0d1ab + a304337 commit 15a5590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 15a5590

Please sign in to comment.