added & fixed some docker scripts

pull/29/head
tycrek 3 years ago
parent 941d20338f
commit 8929bb071f
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -98,7 +98,6 @@ log
.info('Index redirect', ASS_PREMIUM.enabled && ASS_PREMIUM.index ? `enable` : 'disabled')
.blank()
.callback(() => {
console.log(process.argv[1]);
if (process.argv[2] && process.argv[2] === '--docker-compose')
log.info('docker-compose', 'Exiting in 5 seconds...')
.callback(() => setTimeout(() => process.exit(0), 5000))

@ -23,4 +23,10 @@ services:
source: /opt/ass/auth.json
target: /opt/ass/auth.json
tmpfs: /tmp
working_dir: /opt/ass
working_dir: /opt/ass
tty: true
env_file: ./Docker.env
environment:
- NODE_ENV=production
- ASS_ENV=docker
- FORCE_COLOR=3

@ -19,7 +19,11 @@
"prestart": "npm run engine-check",
"presetup": "npm run engine-check",
"logs": "node ./node_modules/@tycrek/log/socketClient.js",
"docker-compose": "npm i && npm run setup && node . --docker-compose && docker-compose up -d && echo \"Check the logs to see if the server is running:\" && echo \"$ docker-compose logs -f -n 50 ass-docker\""
"docker-compose": "npm i && npm run setup && node . --docker-compose && docker-compose up -d && echo \"Check the logs to see if the server is running:\" && echo \"$ docker logs -f -n 50 ass-docker\"",
"docker-logs": "docker logs -f -n 50 ass-docker",
"docker-stop": "docker-compose stop",
"docker-start": "docker-compose start",
"docker-restart": "docker-compose restart"
},
"repository": "github:tycrek/ass",
"keywords": [

@ -86,6 +86,7 @@ const logger = new TLog({
// Enable the Express logger
logger
.env('ASS_ENV')
//.enable.process({ uncaughtException: false }).debug('Plugin enabled', 'Process')
.enable.express().debug('Plugin enabled', 'Express')
.enable.socket().debug('Plugin enabled', 'Socket');

Loading…
Cancel
Save