mirror of
https://github.com/status-im/autobounty.git
synced 2025-02-27 20:40:45 +00:00
Merge pull request #3 from jomsdev/logs_outside_docker
Logs outside docker
This commit is contained in:
commit
b7d18d0433
@ -6,5 +6,8 @@ EXPOSE 8080
|
|||||||
# Set this variable to the name of your production config file (without the extension)
|
# Set this variable to the name of your production config file (without the extension)
|
||||||
ENV NODE_ENV development
|
ENV NODE_ENV development
|
||||||
|
|
||||||
|
# Set this variable to the folder where the logs should be place (must exist)
|
||||||
|
ENV LOG_PATH './log'
|
||||||
|
|
||||||
# Set this variable to the value of the secret field of the Github webhook
|
# Set this variable to the value of the secret field of the Github webhook
|
||||||
ENV WEBHOOK_SECRET ''
|
ENV WEBHOOK_SECRET ''
|
||||||
|
@ -13,9 +13,9 @@ const logger = winston.createLogger({
|
|||||||
level: 'info',
|
level: 'info',
|
||||||
format: winston.format.json(),
|
format: winston.format.json(),
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.File({ filename: config.logPath + 'error.log', level: 'error' }),
|
new winston.transports.File({ filename: './log/error.log', level: 'error' }),
|
||||||
new winston.transports.File({ filename: config.logPath + 'info.log', level: 'info' }),
|
new winston.transports.File({ filename: './log/info.log', level: 'info' }),
|
||||||
new winston.transports.File({ filename: 'combined.log' })
|
// new winston.transports.File({ filename: './log/combined.log' })
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -7,9 +7,6 @@ module.exports = {
|
|||||||
// URL where the bot is listening (e.g. '/funding')
|
// URL where the bot is listening (e.g. '/funding')
|
||||||
urlEndpoint: '',
|
urlEndpoint: '',
|
||||||
|
|
||||||
// Path for the log files inside the docker image (e.g. './log/'), remember to create the folder inside the docker workspace if you change it (the folde will be copied to the docker image during the build)
|
|
||||||
logPath: '',
|
|
||||||
|
|
||||||
// URL for the signer (e.g. 'https://ropsten.infura.io')
|
// URL for the signer (e.g. 'https://ropsten.infura.io')
|
||||||
signerPath: '',
|
signerPath: '',
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ const BOUNTY_LABELS = {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
debug: true,
|
debug: true,
|
||||||
urlEndpoint: '/',
|
urlEndpoint: '/',
|
||||||
logPath: './log/',
|
|
||||||
signerPath: 'https://ropsten.infura.io',
|
signerPath: 'https://ropsten.infura.io',
|
||||||
sourceAddress: '0x26a4D114B98C4b0B0118426F10fCc1112AA2864d',
|
sourceAddress: '0x26a4D114B98C4b0B0118426F10fCc1112AA2864d',
|
||||||
token: 'SNT',
|
token: 'SNT',
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
|
|
||||||
CONTAINER_ID="$(docker ps -lq)"
|
CONTAINER_ID="$(docker ps -lq)"
|
||||||
|
LOG_PATH=$(pwd)/log
|
||||||
docker stop ${CONTAINER_ID}
|
docker stop ${CONTAINER_ID}
|
||||||
docker build -t autobounty .
|
docker build -t autobounty .
|
||||||
sudo docker run -d -p 8080:8080 autobounty &
|
docker run -d -v ${LOG_PATH}:/usr/src/app/log -p 8080:8080 autobounty &
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user