Skip to content

Instantly share code, notes, and snippets.

@xenda
Forked from adzap/development.rb
Created November 19, 2009 14:26

Revisions

  1. @adzap adzap revised this gist Aug 22, 2008. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion development.rb
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@
    require 'ruby-debug'
    Debugger.wait_connection = true
    Debugger.start_remote
    File.unlink(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    File.delete(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    end
  2. @adzap adzap revised this gist Jul 26, 2008. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions restart.rake
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # add this rake file to your lib/tasks folder
    task :restart do
    system("touch tmp/restart.txt")
    system("touch tmp/debug.txt") if ENV["DEBUG"] == 'true'
  3. @adzap adzap revised this gist Jul 26, 2008. 2 changed files with 9 additions and 10 deletions.
    17 changes: 8 additions & 9 deletions development.rb
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,8 @@

    # ... bottom of your development.rb

    if File.exists?(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    require 'ruby-debug'
    Debugger.wait_connection = true
    Debugger.start_remote
    File.unlink(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    end
    # ... bottom of your development.rb

    if File.exists?(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    require 'ruby-debug'
    Debugger.wait_connection = true
    Debugger.start_remote
    File.unlink(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    end
    2 changes: 1 addition & 1 deletion restart.rake
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    task :restart do
    system("touch tmp/restart.txt")
    system("touch tmp/debug.txt") if ENV["DEBUG"]
    system("touch tmp/debug.txt") if ENV["DEBUG"] == 'true'
    end
  4. @adzap adzap revised this gist Jul 25, 2008. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions development.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@

    # ... bottom of your development.rb

    if File.exists?(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    require 'ruby-debug'
    Debugger.wait_connection = true
    Debugger.start_remote
    File.unlink(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    end
  5. @adzap adzap created this gist Jul 25, 2008.
    4 changes: 4 additions & 0 deletions restart.rake
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    task :restart do
    system("touch tmp/restart.txt")
    system("touch tmp/debug.txt") if ENV["DEBUG"]
    end