Module and cache/restarting server

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 M. 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

Yannick M. wrote:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

are you in development or production mode?
Bojan


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org

Yannick M. wrote:

are you in development or production mode?
http://lists.rubyonrails.org/mailman/listinfo/rails
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.

hope that helps,
Bojan


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org

Bojan M. wrote:

Bojan

I think I am in dev, but not sure how to check and change…

Yannick M. 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

Yannick M. wrote:



Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Book says lib/ is for shared code and vendor/ for 3rd aprty libraries.


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org

Bojan M. wrote:

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 M. 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs