Skip to content
Permalink
Browse files

improve docker app command

  • Loading branch information
Brett Clanton
Brett Clanton committed Dec 22, 2019
1 parent 827f327 commit a3ccf938a99e6602dc69bf3369609d6f597b7e09
Showing with 1 addition and 4 deletions.
  1. +0 −3 .docker_development/entrypoint.sh
  2. +1 −1 docker-compose.yml
@@ -1,9 +1,6 @@
#!/bin/bash
set -e

# Remove a potentially pre-existing server.pid for Rails.
rm -f /myapp/tmp/pids/server.pid

# get the DB in ship shape
bundle exec rails db:create db:migrate db:test:prepare

@@ -6,7 +6,7 @@ services:
image: redis
app:
build: .
command: bash -c "bundle exec rails s -p 3000 -b '0.0.0.0'"
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/dashous:consistent
ports:

0 comments on commit a3ccf93

Please sign in to comment.
You can’t perform that action at this time.