Created
September 6, 2011 20:24
-
-
Save ariejan/1198839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p0@falcon ~/Code/Rails/falcon master ⌘ λ rake -T | |
rake about # List versions of all Rails frameworks and the environment | |
rake assets:clean # Remove compiled assets | |
rake assets:precompile # Compile all the assets named in config.assets.precompile | |
rake db:bootstrap # Re-create the database with sample data | |
rake db:create # Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in... | |
rake db:drop # Drops the database for the current Rails.env (use db:drop:all to drop all databases) | |
rake db:fixtures:load # Load fixtures into the current environment's database. | |
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false). | |
rake db:migrate:status # Display status of migrations | |
rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n). | |
rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR | |
rake db:schema:load # Load a schema.rb file into the database | |
rake db:seed # Load the seed data from db/seeds.rb | |
rake db:setup # Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first) | |
rake db:structure:dump # Dump the database structure to an SQL file | |
rake db:version # Retrieves the current schema version number | |
rake doc:app # Generate docs for the app -- also available doc:rails, doc:guides, doc:plugins (options: TEMPLATE=/rdoc-templa... | |
rake forgery:create_dictionary[dictionary_name,source_url,css_or_xpath] # Create a dictionary file from web content (xml or html). | |
rake log:clear # Truncates all *.log files in log/ to zero bytes | |
rake middleware # Prints out your Rack middleware stack | |
rake notes # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus) | |
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM | |
rake rails:template # Applies the template supplied by LOCATION=(/path/to/template) or URL | |
rake rails:update # Update configs and some other initially generated files (or use just update:configs, update:scripts, or update... | |
rake routes # Print out all defined routes in match order, with names. | |
rake secret # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions). | |
rake spec # Run all specs in spec directory (excluding plugin specs) | |
rake spec:acceptance # Run the acceptance specs in spec/acceptance | |
rake spec:controllers # Run the code examples in spec/controllers | |
rake spec:helpers # Run the code examples in spec/helpers | |
rake spec:lib # Run the code examples in spec/lib | |
rake spec:mailers # Run the code examples in spec/mailers | |
rake spec:models # Run the code examples in spec/models | |
rake spec:rcov # Run all specs with rcov | |
rake spec:requests # Run the code examples in spec/requests | |
rake spec:routing # Run the code examples in spec/routing | |
rake spec:views # Run the code examples in spec/views | |
rake stats # Report code statistics (KLOCs, etc) from the application | |
rake time:zones:all # Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g.... | |
rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:c... | |
rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids | |
rake toto:import # Import articles from doc/articles into the database | |
Loaded suite /Users/ariejan/.rvm/gems/ruby-1.9.2-p0@falcon/bin/rake | |
Started | |
Finished in 0.000750 seconds. | |
0 tests, 0 assertions, 0 failures, 0 errors, 0 skips | |
Test run options: --seed 57273 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rake | |
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require File.expand_path('../config/application', __FILE__) | |
Falcon::Application.load_tasks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails server | |
<< snip >> | |
Rendered /Users/ariejan/.rvm/gems/ruby-1.9.2-p0@falcon/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms) | |
^C[2011-09-06 22:25:06] INFO going to shutdown ... | |
[2011-09-06 22:25:06] INFO WEBrick::HTTPServer#start done. | |
Exiting | |
Loaded suite script/rails | |
Started | |
Finished in 0.000526 seconds. | |
0 tests, 0 assertions, 0 failures, 0 errors, 0 skips | |
Test run options: --seed 15319 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment