apt-get install zsh
apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s /bin/zsh
#restart terminal
apt-get install zsh
apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s /bin/zsh
#restart terminal
Steps to get Rails 4 saving its output to Syslog via Rsyslog. This assumes you are on CentOS
, but should be pretty adaptable to any other distribution. Ruby 2.0+
is also required.
lograge
and logstash-event
to your Gemfile
. Feel free to remove from production
if you'd like to test it in development
as well or something.production.rb
with the lograge
settings and set the logger
to Syslog::Logger
.conf
files to /etc/rsyslog.d/
. /etc/rsyslog.conf
should have $IncludeConfig /etc/rsyslog.d/*.conf
enabled, so it will load any additional configs from /etc/rsyslog.conf
.rails new ror-app-name --api
This step is for creating a very basic level of model for us to work in. If you know already, or wish to apply your own custom models with relationships you can skip this step.