Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
app is not reloading in development mode
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adrian Duyzer  
View profile  
 More options Jun 8 2009, 12:02 am
From: Adrian Duyzer <adrianduy...@gmail.com>
Date: Sun, 7 Jun 2009 21:02:43 -0700 (PDT)
Local: Mon, Jun 8 2009 12:02 am
Subject: app is not reloading in development mode
My development version of Sinatra seems to be running in production
mode even when I am in development mode, developing locally, as
changes to my app file are not reflected until I restart the
application.

I know that I am in development mode because it starts with this
message:

== Sinatra/0.9.2 has taken the stage on 4567 for development with
backup from Mongrel

I have the simplest possible setup right now because I just started a
new project that has really nothing in it, just a single action (plus
the requires at the top):

get '/' do
  haml :index
end

If I change haml :index to just:

"yo"

Nothing happens - my app continues to render index.haml.  If I
restart, it renders the text "yo" as expected.  The same thing happens
if I put garbage into the code that would normally cause the app to
fail to run, or if I put debugger statements in, etc.

This is for a little photo gallery I'm hacking together that I just
put up on Github so if you wish to review my code, by all means go
ahead (there's not much there!):

http://github.com/adriand/O/tree/master

I am running the latest gem versions of Sinatra, Haml, Rack and
Mongrel.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Blake Mizerany  
View profile  
 More options Jun 10 2009, 3:13 pm
From: Blake Mizerany <blake.mizer...@gmail.com>
Date: Wed, 10 Jun 2009 12:13:27 -0700
Local: Wed, Jun 10 2009 3:13 pm
Subject: Re: app is not reloading in development mode

Reloading is no longer supported in Sinatra.
Please use/see shotgun:
http://github.com/rtomayko/shotgun

On Sun, Jun 7, 2009 at 9:02 PM, Adrian Duyzer <adrianduy...@gmail.com>wrote:

--
Blake Mizerany
blake.mizer...@gmail.com

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dusty  
View profile  
 More options Jun 10 2009, 10:12 pm
From: dusty <dusty.do...@gmail.com>
Date: Wed, 10 Jun 2009 19:12:30 -0700 (PDT)
Local: Wed, Jun 10 2009 10:12 pm
Subject: Re: app is not reloading in development mode
I use rack reloader.

In my app:

module MyApp
  class Reloader < Rack::Reloader
    def safe_load(file, mtime, stderr = $stderr)
      App.reset! if File.expand_path(file) == File.expand_path
(App.app_file)
      super
    end
  end

  class App < Sinatra::Application
    configure :development do
      use Reloader
    end
  end

end

On Jun 8, 12:02 am, Adrian Duyzer <adrianduy...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Chaffee  
View profile  
 More options Jun 16 2009, 1:46 pm
From: Alex Chaffee <ale...@gmail.com>
Date: Tue, 16 Jun 2009 10:46:25 -0700
Local: Tues, Jun 16 2009 1:46 pm
Subject: Re: app is not reloading in development mode
On Wed, Jun 10, 2009 at 12:13 PM, Blake

Mizerany<blake.mizer...@gmail.com> wrote:
> Reloading is no longer supported in Sinatra.
> Please use/see shotgun:
> http://github.com/rtomayko/shotgun

Or rerun! :-)

http://github.com/alexch/rerun


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
IndianGuru  
View profile  
 More options Jun 16 2009, 11:57 pm
From: IndianGuru <satish.ta...@gmail.com>
Date: Tue, 16 Jun 2009 20:57:18 -0700 (PDT)
Local: Tues, Jun 16 2009 11:57 pm
Subject: Re: app is not reloading in development mode
I installed rerun on Windows by -

E:\>gem install rerun
Successfully installed rerun-0.2.1
1 gem installed
Installing ri documentation for rerun-0.2.1...
Installing RDoc documentation for rerun-0.2.1...
E:\>

My simple Sinatra file (myapp.rb) is -

# myapp.rb
require 'sinatra'
get '/' do
  'Hello'
end

When I type the following to run this app, I get -

E:\sinatra_programs>rerun myapp.rb
E:/ruby/lib/ruby/gems/1.8/gems/rerun-0.2.1/lib/system.rb:7:
uninitialized constant MissingSourceFile (NameError)
        from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from e:/ruby/lib/ruby/gems/1.8/gems/rerun-0.2.1/lib/rerun.rb:1
        from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from e:/ruby/lib/ruby/gems/1.8/gems/rerun-0.2.1/bin/rerun:48
        from e:/ruby/bin/rerun:19:in `load'
        from e:/ruby/bin/rerun:19
E:\sinatra_programs>

What am I doing wrong? All help appreciated. Thanks.

Satish

On Jun 16, 10:46 pm, Alex Chaffee <ale...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Chaffee  
View profile  
 More options Jun 17 2009, 2:49 pm
From: Alex Chaffee <ale...@gmail.com>
Date: Wed, 17 Jun 2009 11:49:40 -0700
Local: Wed, Jun 17 2009 2:49 pm
Subject: Re: app is not reloading in development mode

> What am I doing wrong?

At this point, my only answer is: "Using Windows." :-)

I'll look into it in more detail when I get access to a windows box.

 - A


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Chaffee  
View profile  
 More options Jun 24 2009, 10:43 pm
From: Alex Chaffee <ale...@gmail.com>
Date: Wed, 24 Jun 2009 19:43:04 -0700
Local: Wed, Jun 24 2009 10:43 pm
Subject: Re: app is not reloading in development mode

On Wed, Jun 17, 2009 at 11:49 AM, Alex Chaffee <ale...@gmail.com> wrote:
> > What am I doing wrong?

> At this point, my only answer is: "Using Windows." :-)

> I'll look into it in more detail when I get access to a windows box.

As I feared, the Windows version of Ruby does not support "fork" so Rerun
won't work on that platform. I'll update the docs to make that clear.

 - A


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google