Skip to content

Instantly share code, notes, and snippets.

@ponchik
ponchik / ubuntu-chef.sh
Last active August 29, 2015 14:21
Ubuntu and chef setup
#!/usr/bin/env bash
sudo \curl -sSL https://get.rvm.io | bash
bash -l
rvm install ruby-2.2.2
# rvm --default use rbx-head
gem install chef --no-ri --no-rdoc
sudo apt-get install git -y
sudo mkdir /var/chef
sudo chown dimon /var/chef
#!/bin/bash
SCRIPT='cd /web/vcms/; bundle exec sidekiq'
RUNAS=dimon
NAME=vcms-sidekiq
PIDFILE=/web/vcms/tmp/pids/sidekiq.pid
LOGFILE=/web/vcms/log/sidekiq.log
start() {