/Noah

Primary LanguageShellMIT LicenseMIT

Noah

Automated Rebuilds for ark-node.

Installation

git clone git@github.com:faustbrian/Noah.git

Configuration

If you wish to use a different notification driver then the default one you will need to open ~/Noah/noah.sh and change the following variables to your liking.

# --------------------------------------------------------------------------------------------------
# Notifications
# --------------------------------------------------------------------------------------------------

NOTIFICATION_DRIVER="LOG"

NOTIFICATION_LOG=${DIRECTORY_NOAH}/noah.log

NOTIFICATION_EMAIL_TO="your@email.com"
NOTIFICATION_EMAIL_SUBJECT="Noah"

NOTIFICATION_SLACK_CHANNEL="@your_username"
NOTIFICATION_SLACK_FROM="Noah"
NOTIFICATION_SLACK_ICON="middle_finger"

NOTIFICATION_SMS_FROM="Noah"
NOTIFICATION_SMS_TO=""
NOTIFICATION_SMS_API_KEY=""
NOTIFICATION_SMS_API_SECRET=""

E-Mail

If you wish to use EMAIL as your notification driver you will need to install and configure Postfix.

SMS

If you wish to use SMS as your notification driver you will need to sign up for Nexmo.

Slack

If you wish to use Slack as your notification driver you will need to install and configure slacktee.

Usage

Start noah by executing forever start --pidFile ~/Noah/noah.pid -c bash ~/Noah/noah.sh in your terminal.

This will guarantee that the script will run forever which means even if it crashes it will be automatically restarted.

Run ps ax | grep '/home/ark/Noah/noah.sh' && ps ax | grep '~/Noah/noah.sh' and make sure there are only 2 processes related to the noah.sh.

Security

If you discover a security vulnerability within this package, please send an e-mail to Brian Faust at hello@brianfaust.me. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © Brian Faust