This file contains 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
## Subsitute "SERVER" with your server app and "FILE" with your filename | |
if [ ! -d ./logs ]; then | |
mkdir logs | |
fi | |
SERVER FILE 2> ./logs/server-crash.last | |
printf '\n On ' >> ./logs/server-crash.last | |
echo `date` >> ./logs/server-crash.last | |
printf '\n------------------------------------\n' >> ./logs/server-crash.last | |
cat ./logs/server-crash.last | tee -a ./logs/server-crash.log |
This file contains 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
# Original version | |
PATH="/usr/local/sbin:${PATH}" | |
export PATH | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
# Make global packages available to Node | |
export NODE_PATH="/usr/local/lib/node_modules" |
NewerOlder