This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /usr/local/etc/redis11000.conf | |
| # Redis port 11000 configuration for ERPNext | |
| bind 127.0.0.1 ::1 | |
| protected-mode yes | |
| port 11000 | |
| tcp-backlog 511 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NANORC(5) 2021" NANORC(5) | |
| NAME | |
| nanorc - GNU nano's configuration file | |
| DESCRIPTION | |
| The nanorc files contain the default settings for nano, a small and friendly editor. During startup, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>homebrew.mxcl.redis13000</string> | |
| <key>ProgramArguments</key> | |
| <array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>homebrew.mxcl.redis12000</string> | |
| <key>ProgramArguments</key> | |
| <array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>homebrew.mxcl.redis11000</string> | |
| <key>ProgramArguments</key> | |
| <array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set tabsize 4 | |
| set tabstospaces | |
| set autoindent | |
| set trimblanks | |
| set linenumbers | |
| set constantshow | |
| set titlecolor white,red | |
| set keycolor cyan | |
| set functioncolor cyan | |
| set numbercolor yellow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ErrorResponse = require('./errorResponse'); | |
| const logger = require('./logger'); | |
| const colors = require('colors'); | |
| colors.enable(); | |
| const errorHandler = (err, req, res, next) => { | |
| let error = { ...err }; | |
| error.message = err.message; | |
| // logger.error(err.stack.red); | |
| console.log(err.stack.red); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ErrorResponse extends Error { | |
| constructor(message, statusCode, reason) { | |
| super(message); | |
| this.statusCode = statusCode; | |
| this.reason = reason; | |
| this.name = 'ErrorResponse'; | |
| } | |
| } | |
| module.exports = ErrorResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MONGO_URI='mongodb+srv://<user>:<password>@<cluster_name>.xxxxx.mongodb.net/<database_name>?retryWrites=true&w=majority' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const winston = require('winston'); | |
| require('winston-daily-rotate-file'); | |
| require('winston-mongodb'); | |
| const path = require('path'); | |
| const PROJECT_ROOT = path.join(__dirname, '..'); | |
| const highlight = require('cli-highlight').highlight; | |
| const arrow = '\u276F\u276F\u25B6'; | |
| const logConfig = { |