You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
688 B
29 lines
688 B
#!/bin/bash
|
|
|
|
#MINIO_REGION_NAME="us-east-local"
|
|
#MINIO_REGION_COMMENT=""
|
|
#export MINIO_REGION_NAME MINIO_REGION_COMMENT
|
|
|
|
MINIO_ROOT_USER="newsroom"
|
|
MINIO_ROOT_PASSWORD="1f4feb62-dff8-47d8-9741-2574f5491d12"
|
|
export MINIO_ROOT_USER MINIO_ROOT_PASSWORD
|
|
|
|
#
|
|
# Workers
|
|
#
|
|
|
|
forever start --killSignal=SIGINT -c "node --import ./register.js" src/workers/newsroom.ts
|
|
|
|
#
|
|
# MinIO (S3-compatible storage engine)
|
|
# This process is also used to block the script until you're ready to shut down.
|
|
# Ctrl+C/SIGINT the MinIO process, and the script will continue (and shut down).
|
|
#
|
|
|
|
minio server ./data/minio --address ":9080" --console-address ":9081"
|
|
|
|
#
|
|
# Shutdown
|
|
#
|
|
|
|
forever stop src/workers/newsroom.ts
|
|
|