Darko Fabijan ★ Fun ≈ Work

  1. Search
  2. About
  3. Subscribe
  4. Archive
  5. Random

Darko Fabijan ★ Fun ≈ Work

Ruby guy from Novi Sad, Serbia. Running Rendered :Text Ruby on Rails software consulting firm with @markoa. Working on Plakatt - not just another event publishing site.

Newer
Older
  • Limerick Rake

    thoughtbot-giantrobots:

    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.git

    Database

    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:load

    Prints a list of unindexed foreign keys so you can index them:

    rake db:indexes:missing

    Run model validations on all model records in database:

    rake db:validate_models

    Git

    Merge a branch into the origin/staging branch:

    rake git:push:staging

    Merge the staging branch into origin/production for launch:

    rake git:push:production

    Show the difference between current branch and origin/staging:

    rake git:diff:staging

    Show the difference between origin/staging and origin/production:

    rake git:diff:production

    Pull updates from suspenders, the thoughtbot rails template:

    rake git:pull:suspenders

    Branch origin/production into BRANCH locally:

    rake git:branch:production

    Backup

    Backup the current database. Timestamped file is created as :rails_root/../db-name-timestamp.sql:

    rake backup:db

    Backup all assets under public/system. File is created as :rails_root/../system.tgz:

    rake backup:assets

    Haml & Sass

    Convert all CSS files in public/stylesheets to Sass:

    rake sass:all_css2sass

    Convert all Sass files to CSS:

    rake sass:all_sass2css

    Convert all HTML files to Haml:

    rake haml:all_html2haml

    Posted on August 13, 2009 via giant robots smashing into other giant robots with 9 notes

    Source: thoughtbot

    1. nhmortgagebroker liked this
    2. mamortgageexpert liked this
    3. ctmortgagebroker liked this
    4. flmortgagebroker liked this
    5. dancroak liked this
    6. darkofabijan reblogged this from thoughtbot
    7. thoughtbot posted this
  • fred-wilson
  • newspeedwayboogie
  • clientsfromhell
  • borris
  • nuji
  • skylab
  • tackazvezda
  • marco
  • unhappyhipsters
  • thoughtbot
  • ratkob
  • 1daylater
  • viafrank
  • oleganza
  • plakatt
  • mandric
  • ignaciogiri
  • eniac
  • realmerlyn
  • thomasmango
  • bestofwikipedia
  • renderedtext
  • adii
  • smrtrvltn
  • herbivorg

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.