reloading .rb files / reparsing?

D

dc

hi -

I'm working on an app which is using webbrick for its mini web-server.

each time i change the source i have to restart my app;
is there a way to get ruby to re-parse the files without this?
effectively the same as if just reloading the page if it were PHP...

i guess rails does this - "not caching" the files while in dev mode.

tx!

/dc
 
C

Chris Carter

hi -

I'm working on an app which is using webbrick for its mini web-server.

each time i change the source i have to restart my app;
is there a way to get ruby to re-parse the files without this?
effectively the same as if just reloading the page if it were PHP...

i guess rails does this - "not caching" the files while in dev mode.

tx!

/dc
-------------------------------------------
David "DC" Collier
mailto:[email protected]
+81 (0)80 6521 9559
skype: callto://d3ntaku

Hi David,
You could try hacking the Camping Reloader to do your business:
http://code.whytheluckystiff.net/camping/browser/trunk/lib/camping/reloader.rb
http://code.whytheluckystiff.net/camping/browser/trunk/bin/camping
(this uses it)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top