Skip to content

Commit

Permalink
@ #30 | minor updates for teracy-dev best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Mar 20, 2017
1 parent 687b007 commit 7b6d38d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .gitignore
@@ -1,11 +1,11 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/dist/*
/tmp

# dependencies
/node_modules
/node_modules/*

# IDEs and editors
/.idea
Expand Down Expand Up @@ -39,6 +39,9 @@ testem.log
.DS_Store
Thumbs.db
.env
# for teracy-dev file mapping
!dist/.gitkeep
!node_modules/.gitkeep

# angular-boilerplate
.angular-cli.json
Expand Down
Empty file added dist/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions docker-compose.prod.tpl.yml
Expand Up @@ -3,6 +3,7 @@ version: '3'
services:

prod:
container_name: ${PROJECT_NAME}_dev
build:
context: .
args:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.tpl.yml
Expand Up @@ -3,6 +3,7 @@ version: '3'
services:

dev:
container_name: ${PROJECT_NAME}_dev
build:
context: .
dockerfile: Dockerfile-dev
Expand Down
Empty file added node_modules/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions setup.sh
Expand Up @@ -10,8 +10,8 @@ envsubst '${PROJECT_NAME} ${PROJECT_VERSION} ${DOMAIN_DEV}' <package.tpl.json >p

# generate docker-compose.yml
rm -rf docker-compose.yml
envsubst '${DOCKER_IMAGE_DEV} ${DOMAIN_DEV}' <docker-compose.tpl.yml >docker-compose.yml
envsubst '${PROJECT_NAME} ${DOCKER_IMAGE_DEV} ${DOMAIN_DEV}' <docker-compose.tpl.yml >docker-compose.yml

# generate docker-compose.prod.yml
rm -rf docker-compose.prod.yml
envsubst '${DOCKER_IMAGE_PROD} ${DOMAIN_PROD}' <docker-compose.prod.tpl.yml >docker-compose.prod.yml
envsubst '${PROJECT_NAME} ${DOCKER_IMAGE_PROD} ${DOMAIN_PROD}' <docker-compose.prod.tpl.yml >docker-compose.prod.yml

0 comments on commit 7b6d38d

Please sign in to comment.