This file contains hidden or 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
bower_components | |
node_modules | |
main-builded.js | |
vendor/tipped-4.1.6 |
This file contains hidden or 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
/root/.pm2/logs/*.log { | |
daily | |
rotate 52 | |
missingok | |
notifempty | |
compress | |
sharedscripts | |
dateext | |
dateformat %Y-%m-%d | |
postrotate |
This file contains hidden or 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
# | |
# VM configuration | |
# | |
# Where to find JVM, if {java.home}/jre exists then that JVM is used | |
# if not then it must be the path to the JRE itself | |
java.home=/opt/coldfusion10/jre/ | |
application.home=/opt/coldfusion10/cfusion | |
# |
This file contains hidden or 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
#!/bin/bash | |
function print { | |
echo "[$(date)] MONIT-WRAPPER: $1" | |
} | |
{ | |
print "Env variables" | |
env | |
print "Command: $*" |
This file contains hidden or 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
## /etc/init.d/coldfusion | |
curl https://gist.githubusercontent.com/LoicMahieu/21a7f63f0c3480610dc5/raw/ea99bb325bf221a03afb605ccc3884642279bc3f/coldfusion > /etc/init.d/coldfusion | |
chmod +x /etc/init.d/coldfusion | |
## CF9 | |
## /etc/monit/monitrc | |
curl https://gist.githubusercontent.com/LoicMahieu/9894781/raw/98039f79836b314a6fb47d14b36a5b3241017b72/gistfile1.txt > /etc/monit/monitrc | |
curl https://gist.githubusercontent.com/LoicMahieu/9894781/raw/041b5b0bc914db69f08c448b6265a95ea6d00227/cf9 > /etc/monit/conf.d/coldfusion | |
chmod 700 /etc/monit/monitrc | |
chmod 700 /etc/monit/conf.d/coldfusion |
This file contains hidden or 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
## /etc/init.d/coldfusion | |
curl https://gist.githubusercontent.com/LoicMahieu/21a7f63f0c3480610dc5/raw/ea99bb325bf221a03afb605ccc3884642279bc3f/coldfusion > /etc/init.d/coldfusion | |
chmod +x /etc/init.d/coldfusion | |
## CF10 | |
## /etc/monit/monitrc | |
curl https://gist.githubusercontent.com/LoicMahieu/9894781/raw/98039f79836b314a6fb47d14b36a5b3241017b72/gistfile1.txt > /etc/monit/monitrc | |
curl https://gist.githubusercontent.com/LoicMahieu/9894781/raw/7b08815cacfceecaa478f2a3f02cb603fdbd5b7c/cf10 > /etc/monit/conf.d/coldfusion | |
curl https://gist.githubusercontent.com/LoicMahieu/49e07e25f9ec12e9d94a/raw/99907ab6445d6c605a1e0f97208ee55f2d142ec0/monit-wrapper > /etc/monit-wrapper | |
chmod +x /etc/monit-wrapper |
This file contains hidden or 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
curl https://gist.githubusercontent.com/LoicMahieu/077317910cf9e78a18d3/raw/b99605d8a55970328f84f87127414bf3529cae3c/log4j.properties > /opt/coldfusion10/cfusion/lib/log4j.properties |
This file contains hidden or 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
/opt/coldfusion10/cfusion/logs/*.log { | |
# Log files are rotated every day. | |
daily | |
# If the log file is missing, go on to the next one without issuing an error | |
# message. | |
missingok | |
# Log files are rotated count times before being removed or mailed to the | |
# address specified in a mail directive. |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1397825720000", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ |
This file contains hidden or 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
check process coldfusion10 with pidfile /var/run/coldfusion10.pid | |
start program = "/etc/monit-wrapper /etc/init.d/coldfusion restart" with timeout 60 seconds | |
stop program = "/etc/monit-wrapper /etc/init.d/coldfusion stop" | |
if failed host localhost port 80 | |
protocol HTTP request "/CFIDE/administrator/index.cfm" | |
with timeout 45 seconds | |
then restart | |