development / production server
What is the common practice to handle file sync between development server and production server? Is there a trivial way in netbeans to upload the files as frequently as I would, just by saving it locally, without using the version control systems or uploading through the manager/html page? Is it possible to mount a remote directory (sftp, hopefully) like a local directory? Thanks. Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: development / production server
correct me if i'm wrong, but if you do that, you would be turning your production server into your development server! yikes. woodchuck --- Ben Kim [EMAIL PROTECTED] wrote: What is the common practice to handle file sync between development server and production server? Is there a trivial way in netbeans to upload the files as frequently as I would, just by saving it locally, without using the version control systems or uploading through the manager/html page? Is it possible to mount a remote directory (sftp, hopefully) like a local directory? Thanks. Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: development / production server
The usual way is to use a build tool (Ant say) to package up your web application code for production deployment (WAR, EAR etc..). The application server / servlet container usually takes care of deploying that. In practice, you will want to hot patch files onto a production server without the hassle of such packaging, and if you are used to ASP.net/PHP web apps you'll get frustrated that J2EE servers are not always good at handling class changes (JSPs are ok if you don't precompile). We've found no real answer to this problem other than scheduling time to restart Tomcat after class redeployment. This could be us getting it wrong with our deployment methods, but although we try and free up as much stuff as possible using a context listener, including static members we find reloads within Tomcat do not release enough memeory to make it a viable alternative to restarts. We'll look at a dual server setup next month I believe. -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 15:37 To: Tomcat Users List Subject: Re: development / production server correct me if i'm wrong, but if you do that, you would be turning your production server into your development server! yikes. woodchuck --- Ben Kim [EMAIL PROTECTED] wrote: What is the common practice to handle file sync between development server and production server? Is there a trivial way in netbeans to upload the files as frequently as I would, just by saving it locally, without using the version control systems or uploading through the manager/html page? Is it possible to mount a remote directory (sftp, hopefully) like a local directory? Thanks. Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: development / production server
Use CVS for version control. (or any version control) Write a script which - Checks out from CVS the version tagged for production - Builds and precompiles the webapp - Copies the webapp to production - Restarts the webapp (or tomcat) *Always build your production webapp from a CVS tagged revision.* If the build machine is different from production, mirror.pl works great for FTP syncing files. -Tim Ben Kim wrote: What is the common practice to handle file sync between development server and production server? Is there a trivial way in netbeans to upload the files as frequently as I would, just by saving it locally, without using the version control systems or uploading through the manager/html page? Is it possible to mount a remote directory (sftp, hopefully) like a local directory? Thanks. Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: development / production server
Thank you all for advices. In my case I run Netbeans on my PC and deploy the result to the server. It's an addition to existing applications so overwriting production files is not a concern. I just wondered if there's a trivial way to sync files, like I would in Dreamweaver. I gather perhaps version control is the only way. Thanks. Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]