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īt understand how :) I try to > 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īt restart server (I need connect it > with ssh, and then restart, this may be boring). Hi Michel, 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 in WebKit/Docs/Tutorial.txt. > Is there a way to restart inside app, creating a servlet to restart server? This would also be possible and fairly easy to implement, but I think if you enable AutoReload you won't need it. > 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 cron 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 changes which I want to have in CVS). On the production machine I check out the application from CVS. When I make 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 database (or use some scripts to do so) so that you have the same schema in the database. 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 [EMAIL PROTECTED] 'cd my_app_dir; cvs update -dP ; ./server restart' > 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 (which is for planning and coordinating the development of the Webware software itself). -- Jason D. Hildebrand T: 204 775 1212 E: [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss