Invoke bundler

This commit is contained in:
Hakan Ensari 2019-12-20 01:04:05 +00:00
parent 85c241d756
commit 60ee39f1c2
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,4 @@ RUN gem install bundler
RUN bundle config set without "development test"
RUN bundle install --jobs=8
ADD . /app
CMD ["unicorn", "-c", "./config/unicorn.rb"]
CMD ["bundle", "exec", "unicorn", "-c", "./config/unicorn.rb"]

View File

@ -5,7 +5,7 @@ services:
volumes:
- data:/var/lib/postgresql/data
web:
command: unicorn -c config/unicorn.rb
command: bundle exec unicorn -c config/unicorn.rb
entrypoint: bin/wait-for-it.sh db:5432 -s --
environment:
DATABASE_URL: postgres://postgres@db/postgres