Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .githooks/pre-commit/general
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run lint && npm run test
npm run lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ npm-debug.log
config/local.js
config/development.js
.*swp
data/
7 changes: 7 additions & 0 deletions config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@
"port": "COUCHDB_PORT",
"username": "COUCHDB_USER",
"password": "COUCHDB_PASS"
},
"blobStore": {
"transport": "BLOB_TRANSPORT",
"address": "BLOB_ADDRESS",
"protocol": "BLOB_PROTOCOL",
"port": "BLOB_PORT",
"multiaddr": "BLOB_MULTIADDR"
}
}
9 changes: 9 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,14 @@ module.exports = {
url: function () {
return `${this.scheme}://${this.username}:${this.password}@${this.host}:${this.port}`
}
},
blobStore: {
transport: 'ip4',
address: '127.0.0.1',
protocol: 'tcp',
port: 5001,
multiaddr: function () {
return `/${this.transport}/${this.addr}/${this.proto}/${this.port}`
}
}
}
12 changes: 10 additions & 2 deletions docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ services:
web:
build: .
expose:
- "5000"
- '5000'
ports:
- '5000:5000'
volumes:
- ./:/usr/src/app/
links:
- geocouch:geocouch
environment:
NODE_ENV: 'production'
geocouch:
image: almereyda/geocouch
volumes:
- ./data:/usr/local/var/lib/couchdb
expose:
- "5984"
- '5984'
ports:
- '5984:5984'
Loading