Install Errbit 4.x

Install Errbit 4.x on nginx with configurations

nginx already configured with passenger

Install MongoDB

Install errbit

1
2
3
4
cd /var/webapps/
git clone https://github.com/errbit/errbit.git
cd errbit
bundle install

Configuration

1
2
cp .env.default .env
vim .env

Initial database and compile assets

1
2
RAILS_ENV=production rake errbit:bootstrap
RAILS_ENV=production rake assets:precompile

Errbit site config

/etc/nginx/sites-available/errbit.conf
1
2
3
4
5
6
server {
server_name errbit.example.com;
root /var/webapps/errbit/public;
passenger_sticky_sessions on;
passenger_enabled on;
}

Enable and start in nginx

1
2
ln -s /etc/nginx/sites-available/errbit.conf /etc/nginx/sites-enabled/
service nginx resart

Restart Errbit

1
touch /var/webapps/errbit/tmp/restart.txt