Skip to content

Commit

Permalink
Add some development-mode configs for client
Browse files Browse the repository at this point in the history
The app watches for file changes with the mechanism described at:
* facebook/create-react-app#1049
  • Loading branch information
Grace committed Sep 24, 2018
1 parent 319436f commit 07c83ec
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
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:
volumes:
# Be sure you have a local copy of the `tb-mobile-app` repo,
# and reference it with the `TB_MOBILE_CONTEXT` variable in `.env`.
- ${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 07c83ec

Please sign in to comment.