On Thu, 2004-06-03 at 08:41, Michel Thadeu wrote:
> Hi guys!
> I starting to use cvs to control my projects, I want some sugestions
> on how to use it in the best way with webware.
> First I need to reload modules without restart server, someone
> suggests me to use the ihook feature but I don=B4t understand how :) I tr=
> use the Admin section without success, even if I try to reaload an
> specific module choosing it or even if I try to clear all the cache...
> My situation is the follow:
> Page.py --> Model.py --> MyPage.py
> I want to change Model.py and can=B4t restart server (I need connect it
> with ssh, and then restart, this may be boring).=20
For development, you want the "AutoReload" feature. Then the app server
will restart itself automatically whenever you change a config file or
python module which is being used by the app server. This is documented
> Is there a way to restart inside app, creating a servlet to restart serve=
This would also be possible and fairly easy to implement, but I think if yo=
enable AutoReload you won't need it. =20
> How do you work with cvs? I think in to create a parallel instance of
> webware on my development machine, but is there a way to, when I
> commit changes, this changes happens to the source too?
I think what you're asking is whether the production machine can
automatically pull the latest source code from CVS. You could set up a cro=
job to do that, but I don't think I would do that -- I'd rather update it
explicitly when I know the CVS is stable and I'm ready to do the update
(I guess it depends on the nature of your app, though).
I do all development on my personal system, and check everything into CVS.
By "everything", I mean my working directory (including contexts), a libs
directory, and a complete copy of Webware (because I often make local chang=
I want to have in CVS).
On the production machine I check out the application from CVS. When I mak=
changes I test them on my development machine, and when it's working I
commit the changes, do a 'cvs update' on the production and restart the
production app server if necessary. If you make schema changes on your
development machine you may need to dump/edit/reload the production databas=
(or use some scripts to do so) so that you have the same schema in the
If you find logging in via ssh to restart the server tedious, you probably
need to use ssh-agent and ssh-copy-id so that you don't need to enter
a password every time you log in, and then write a script which updates
from CVS and restarts the server:
ssh myuser@... 'cd my_app_dir; cvs update -dP ; ./server
> sorry bout all this questions :) I want to fix my development schema.
> thanks for all help
You're welcome -- I hope this info is useful. Your questions should
really have been posted to webware-discuss, though, and not webware-devel=20
(which is for planning and coordinating the development of the Webware soft=
Jason D. Hildebrand
T: 204 775 1212