Logs transferd outside into $(pwd)/log

This commit is contained in:
Pol.Alvarez@BSC 2018-02-27 12:17:03 +01:00
parent 009d0ad50e
commit 845340a914
2 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,6 @@ const BOUNTY_LABELS = {
module.exports = {
debug: true,
urlEndpoint: '/',
logPath: './log/',
signerPath: 'https://ropsten.infura.io',
sourceAddress: 'XXXXX',
token: 'SNT',

View File

@ -1,7 +1,5 @@
CONTAINER_ID="$(docker ps -lq)"
LOG_PATH=$(readlink -f './log')
LOG_PATH=$(pwd)/log
docker stop ${CONTAINER_ID}
docker build -t autobounty .
docker run -d --mount source=$LOG_PATH,target=/usr/src/app/log -p 8080:8080 autobounty
docker run -d -v ${LOG_PATH}:/usr/src/app/log -p 8080:8080 autobounty &