Add `bundle exec` to all the things

pull/1003/head
Rick Carlino 2018-10-01 15:06:26 -05:00
parent 32eef9deba
commit c04777baf1
4 changed files with 6 additions and 15 deletions

View File

@ -1,5 +0,0 @@
# Run Rails & Webpack concurrently
rails: rails s -e development -p ${API_PORT:-3000} -b 0.0.0.0
rabbit_workers: bin/rails r lib/rabbit_workers.rb
worker: rake jobs:work
log_digests: FOREVER=true rake api:log_digest

View File

@ -1 +0,0 @@
rails: rails s -e development -p ${API_PORT:-3000} -b 0.0.0.0

View File

@ -1,9 +1,6 @@
FROM ruby:2.5
RUN apt-get update -qq && apt-get install -y \
build-essential \
libpq-dev \
postgresql \
postgresql-contrib
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev \
postgresql postgresql-contrib
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
RUN mkdir /farmbot

View File

@ -19,7 +19,7 @@ services:
context: .
dockerfile: docker-api.Dockerfile
# Add the `rm -f` part to avoid "server is still running..." errors:
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -e development -p ${API_PORT:-3000} -b 0.0.0.0"
volumes:
- .:/farmbot
- ./docker_volumes/bundle_cache:/bundle
@ -47,7 +47,7 @@ services:
build:
context: .
dockerfile: docker-api.Dockerfile
command: rake jobs:work
command: bundle exec rake jobs:work
volumes:
- .:/farmbot
- ./docker_volumes/bundle_cache:/bundle
@ -59,7 +59,7 @@ services:
build:
context: .
dockerfile: docker-api.Dockerfile
command: rake api:log_digest
command: bundle exec rake api:log_digest
volumes:
- .:/farmbot
- ./docker_volumes/bundle_cache:/bundle
@ -71,7 +71,7 @@ services:
build:
context: .
dockerfile: docker-api.Dockerfile
command: rails r lib/rabbit_workers.rb
command: bundle exec rails r lib/rabbit_workers.rb
volumes:
- .:/farmbot
- ./docker_volumes/bundle_cache:/bundle