Hello, It seems I need to restart webrick everytime I modify a module in order for my modifications to be taken into account. Is this normal and is there a workaround? Regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 ---------------------------------------------------------------------- Mon calendrier en ligne : http://www.inma.ucl.ac.be/~majoros/calendar Accents bizarres ? http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3403 bytes Desc: S/MIME Cryptographic Signature Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060621/245daf8a/smime.bin
Yannick Majoros wrote:> Hello, > > It seems I need to restart webrick everytime I modify a module in order > for my modifications to be taken into account. Is this normal and is > there a workaround? > > Regards, > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsare you in development or production mode? Bojan -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org
Bojan Mihelac wrote:> Yannick Majoros wrote: >> Hello, >> >> It seems I need to restart webrick everytime I modify a module in >> order for my modifications to be taken into account. Is this normal >> and is there a workaround? >> >> Regards, > > are you in development or production mode? > Bojan >I think I am in dev, but not sure how to check and change... -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 ---------------------------------------------------------------------- Mon calendrier en ligne : http://www.inma.ucl.ac.be/~majoros/calendar Accents bizarres ? http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3403 bytes Desc: S/MIME Cryptographic Signature Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060621/365f6550/smime-0001.bin
Yannick Majoros wrote:> Bojan Mihelac wrote: >> Yannick Majoros wrote: >>> Hello, >>> >>> It seems I need to restart webrick everytime I modify a module in >>> order for my modifications to be taken into account. Is this normal >>> and is there a workaround? >>> >>> Regards, >> >> are you in development or production mode? >> Bojan >> > I think I am in dev, but not sure how to check and change... > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsruby script/server --environment=development Development is default mode. I noticed also that in development mode I have to restart webrick if I modified classes outside app folder. hope that helps, Bojan -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org
Bojan Mihelac wrote:> Yannick Majoros wrote: >> Bojan Mihelac wrote: >>> Yannick Majoros wrote: >>>> Hello, >>>> >>>> It seems I need to restart webrick everytime I modify a module in >>>> order for my modifications to be taken into account. Is this normal >>>> and is there a workaround? >>>> > > ruby script/server --environment=development > > Development is default mode. I noticed also that in development mode I > have to restart webrick if I modified classes outside app folder.I''m sure I am in dev mode, because the production database doesn''t exist. The module is beneath app folder. Actually, what is the right place for a module? -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA 4, avenue G. Lema?tre B-1348 Louvain-la-Neuve Tel: +32-10-47.80.10 Fax: +32-10-47.21.80 ---------------------------------------------------------------------- Mon calendrier en ligne : http://www.inma.ucl.ac.be/~majoros/calendar Accents bizarres ? http://www.inma.ucl.ac.be/~majoros/email.html ---------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3403 bytes Desc: S/MIME Cryptographic Signature Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060621/a440072d/smime-0001.bin
Yannick Majoros wrote:> Bojan Mihelac wrote: >> Yannick Majoros wrote: >>> Bojan Mihelac wrote: >>>> Yannick Majoros wrote: >>>>> Hello, >>>>> >>>>> It seems I need to restart webrick everytime I modify a module in >>>>> order for my modifications to be taken into account. Is this normal >>>>> and is there a workaround? >>>>> >> >> ruby script/server --environment=development >> >> Development is default mode. I noticed also that in development mode I >> have to restart webrick if I modified classes outside app folder. > > I''m sure I am in dev mode, because the production database doesn''t > exist. The module is beneath app folder. Actually, what is the right > place for a module? > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsBook says lib/ is for shared code and vendor/ for 3rd aprty libraries. -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org