Skip to content

Commit

Permalink
Add some development-mode configs for client (#16)
Browse files Browse the repository at this point in the history
Add some development-mode configs for `client`

When uncommented, these configs will tell the app
to watch for file changes with the mechanism described at:
* facebook/create-react-app#1049
  • Loading branch information
c4lliope committed Sep 24, 2018
1 parent 319436f commit 48298b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
version: '3.3'

# This file is intended to overwrite certain settings from `docker-compose.yml`.
# These changes make it easier to develop,
# with a tighter feedback loop on changes
# and some additional debugging tools installed.
# To activate development mode as defined by this file,
# add this line to your `.env` file:
#
# COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml

services:
client:
# If you're working with a local copy of the `tb-mobile-app` repo,
# reference it with the `TB_MOBILE_CONTEXT` variable in `.env`
# and uncomment this section.
# volumes:
# - ${TB_MOBILE_CONTEXT}:/usr/src
environment:
# This allows Webpack's dev server to pick up file changes in Docker.
# see https://github.com/facebook/create-react-app/issues/1049
CHOKIDAR_USEPOLLING: 'true'

web:
# command: bash -c '/wait && flask run --host 0.0.0.0 --port 5000'
build:
Expand Down

0 comments on commit 48298b0

Please sign in to comment.