Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
building locally
Browse files Browse the repository at this point in the history
  • Loading branch information
didimitrie committed Jun 23, 2018
1 parent e219507 commit abb579f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: '3'
services:
# SPECKLE
speckle:
image: speckle/speckleserver:latest
# image: speckle/speckleserver:latest
build: .
ports:
- '3000:3000'
networks:
Expand All @@ -13,14 +14,14 @@ services:
environment:
# Change the variable underneath as it will help users differentiate
# between multiple accounts.
- SPECKLE_NAME="Docker Speckle Server"
- SPECKLE_NAME=Docker Speckle Server
# This is used in the encryption of the api access tokens.
# Please change it to something random!
- SESSION_SECRET="helloworld"
- SESSION_SECRET=helloworld
- REQ_SIZE=16mb
- INDENT_RESPONSES=false
- MONGO_URI="mongodb://mongo:27017/speckle"
- REDIS_URL="redis://redis:6379"
- MONGO_URI=mongodb://mongo:27017/speckle_docker
- REDIS_URL=redis://redis:6379
links:
- redis
- mongo
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ winston.level = 'debug'

if ( cluster.isMaster ) {

const configResult = require( 'dotenv' ).config( )
const configResult = require( 'dotenv' ).config( { path: './.env' } )
if ( configResult.error ) {
winston.debug( chalk.red( 'There is an error in the .env configuration file. Will use the default provided ones (if any).' ) )
winston.debug( chalk.bgRed( 'There is an error in the .env configuration file. Will use the default provided ones (if any).' ) )
}

let osCpus = require( 'os' ).cpus( ).length
Expand Down

0 comments on commit abb579f

Please sign in to comment.