Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@banyan
banyan / gen.sh
Created October 10, 2011 04:24 — forked from kennyj/gen.sh
backbone.jsが利用できる状態でrailsプロジェクト生成 (rails3.1版 + MySQL)
#!/bin/sh
# 'capybara-webkit' の依存性のため、qt をインストールする必要がある
# $ brew install qt
# railsプロジェクト作成して移動する
rails new "$1" --skip-test-unit --database=mysql
cd "$1"
# Gemfileに必要なgemを追記する
cat << HERE >> Gemfile
#! /bin/sh
### BEGIN INIT INFO
# Provides: mongodb
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the mongodb data-store
# Description: starts mongodb using start-stop-daemon