Find:
:(\w+)[\s]+=>[\s]+
Replace:
$1:
In order to use asset pipeline available for static error pages (like 404.html), a few steps are required
-
Move static pages from /public into /app/assets
(eg: public/422.html → app/assets/html/422.html.erb)
-
Add html directory to the asset pipeline
-
Update exceptions middleware to understand assets with digests
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
var myApp = angular.module('myApp', []); | |
myApp.directive('googleplace', function() { | |
return { | |
require: 'ngModel', | |
link: function(scope, element, attrs, model) { | |
var options = { | |
types: [], | |
componentRestrictions: {} | |
}; |
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
cd ~ | |
wget http://mmonit.com/monit/dist/binary/5.12/monit-5.12-linux-x64.tar.gz | |
tar zxf monit-5.12-linux-x64.tar.gz | |
cd monit-5.12/ | |
cp bin/monit /usr/bin/ | |
mkdir /etc/monit | |
touch /etc/monit/monitrc | |
chmod 0700 /etc/monit/monitrc | |
ln -s /etc/monit/monitrc /etc/monitrc | |
wget https://gist.githubusercontent.com/gaurish/964456aa08c9fa2e43ee/raw/1aa107e62ecaaa2dacfdb61a12f13efb6f15005b/monit -P /etc/init.d/ |
OlderNewer