Skip to content

Commit

Permalink
improve docker app command
Browse files Browse the repository at this point in the history
  • Loading branch information
brettclanton001 committed Dec 22, 2019
1 parent 827f327 commit a3ccf93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .docker_development/entrypoint.sh
@@ -1,9 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -e


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

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


Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -6,7 +6,7 @@ services:
image: redis image: redis
app: app:
build: . 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: volumes:
- .:/dashous:consistent - .:/dashous:consistent
ports: ports:
Expand Down

0 comments on commit a3ccf93

Please sign in to comment.