Skip to content

Commit

Permalink
Initial working setup
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi committed Aug 13, 2017
1 parent dca93e1 commit 62a20ab
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARTSY_URL=http://localhost:5000/__gravity
SESSION_SECRET=p0s1tr0n
MONGOHQ_URL=mongodb://localhost:27017/positron-test
ELASTICSEARCH_URL=http://localhost:9200
ELASTICSEARCH_PORT=9200
SALT=$2a$10$PJrPMBadu1NPdmnshBgFbe
API_MAX=100
API_PAGE_SIZE=10
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dump.rdb
.env.ignore
node_modules
.vscode
data
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:7
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json .
COPY . .
RUN yarn install
2 changes: 1 addition & 1 deletion client/apps/edit/routes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ render = (req, res, article) ->
setChannelIndexable = (channel, article) ->
noIndex = sd.NO_INDEX_CHANNELS.split '|'
if noIndex.includes channel.get('id')
article.set 'indexable', false
article.set 'indexable', false
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '2'
services:
elasticsearch:
image: elasticsearch:latest
ports:
- "${ELASTICSEARCH_PORT}:${ELASTICSEARCH_PORT}"
mongodb:
image: mongo:latest
server:
build: .
command: make s
ports:
- "${PORT}:${PORT}"
depends_on:
- elasticsearch
- mongodb
volumes:
- .:/usr/src/app

0 comments on commit 62a20ab

Please sign in to comment.