-
Limerick Rake
Limerick Rake is a collection of useful rake tasks for Rails apps. Some we wrote ourselves, many we’ve collected from others in the community. We’re always on the lookout for helpful rake tasks so if you have anything, please post them in the comments. To use in a Rails app:
script/plugin install git://github.com/thoughtbot/limerick_rake.gitDatabase
Read tasks/database.rake for details for configuration. Load initial database fixtures (in db/bootstrap/*.yml) into the current environment’s database. Load specific fixtures using FIXTURES=x,y:
rake db:bootstrap:loadPrints a list of unindexed foreign keys so you can index them:
rake db:indexes:missingRun model validations on all model records in database:
rake db:validate_modelsGit
Merge a branch into the origin/staging branch:
rake git:push:stagingMerge the staging branch into origin/production for launch:
rake git:push:productionShow the difference between current branch and origin/staging:
rake git:diff:stagingShow the difference between origin/staging and origin/production:
rake git:diff:productionPull updates from suspenders, the thoughtbot rails template:
rake git:pull:suspendersBranch origin/production into BRANCH locally:
rake git:branch:productionBackup
Backup the current database. Timestamped file is created as :rails_root/../db-name-timestamp.sql:
rake backup:dbBackup all assets under public/system. File is created as :rails_root/../system.tgz:
rake backup:assetsHaml & Sass
Convert all CSS files in public/stylesheets to Sass:
rake sass:all_css2sassConvert all Sass files to CSS:
rake sass:all_sass2cssConvert all HTML files to Haml:
rake haml:all_html2hamlPosted on August 13, 2009 via giant robots smashing into other giant robots with 9 notes
Source: thoughtbot
-
nhmortgagebroker liked this
-
mamortgageexpert liked this
-
ctmortgagebroker liked this
-
flmortgagebroker liked this
-
dancroak liked this
-
darkofabijan reblogged this from thoughtbot
-
thoughtbot posted this
-