Skip to content

Instantly share code, notes, and snippets.

@koseki
Created December 16, 2008 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koseki/36439 to your computer and use it in GitHub Desktop.
Save koseki/36439 to your computer and use it in GitHub Desktop.
rails simple startup sh
#! /bin/sh
PRJ=rails`date +"%Y%m%d%H%M"`
rails $PRJ
curl http://gist.github.com/raw/36435/da54bca46b1b0612b1063123b6d30a826718a74a | sed s/deleteme/$PRJ/g > $PRJ/config/database.yml
cd $PRJ
rake db:create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment