Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcampbppu/sims_auto_email
Automated Email Server for SIMS using Node and Mail-gun
https://github.com/tcampbppu/sims_auto_email
Last synced: 16 days ago
JSON representation
Automated Email Server for SIMS using Node and Mail-gun
- Host: GitHub
- URL: https://github.com/tcampbppu/sims_auto_email
- Owner: tcampbPPU
- Created: 2019-10-18T12:50:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T09:54:21.000Z (about 2 years ago)
- Last Synced: 2024-10-27T23:50:59.953Z (2 months ago)
- Language: JavaScript
- Size: 262 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Sims Automated Email Server Configured
## Install NPM Pkg's
`$ npm install`
Make sure app starts:
`$ npm run dev`
Control + C to kill running script.
### Globally install PM2 run-time process manager
`$ sudo npm i pm2 -g`
Allow script to run on boot
`$ pm2 startup ubuntu`
> **Note:** I have only done this for Ubuntu & FreeBSD. Also might require you to run as root, Docs say not to use `sudo` for some reason
> Link to PM2 Documentation: http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/
Start app with pm2`$ pm2 start app`
> **Note:** Could alternatively run script via
> `$ npm run start` or `$ node app.js`
> or run the dev
> `$ npm run dev`
#### Main pm2 commands
`$ pm2 show app`
`$ pm2 status`
`$ pm2 restart app`
`$ pm2 stop app`
`$ pm2 log` (Show console log stream)
`$ pm2 flush` (Clear console logs)
### Cron Monitoring Tool
> Could be worth looking into since a cron failure it hard to detect with plain node.js
> Link to Health Checks Cron Monitoring tool: https://healthchecks.io/docs/