What to do when application is deployed?

Hi,

When i deploy new scriptcase application, what should I do ?

Start/Stop apache service ?
Reboot the server ?
Others points ?

Because if do nothing (just copy new files), users already connected are using same session/cookies and infos are not valid, that lead to unpredictable behavior.

And scriptcase code did’nt check that a new application has been deployed.

So it i important for a security reason to solve this question.

Sorry for my noob remarks

Are you making deploys in production servers with users connected??? :open_mouth:

A few tips:

  • Planning deployment windows at non-labour ours.
  • Stop webserver (apache or whatever) and stop database server: it’ll kill any open or blocked session.
  • Move apps to another folder (backup).
  • Deploy (copy) new apps.
  • Start webserver.
  • Sync apps from security meny.
  • Test everything is fine.
  • Enjoy.

(i know, i know, there is a lot of improvement here…)

Many thanks for your replay

I will try to organize all those activities.

But if we limit just to server shutdown is it sufficient ? does it cancels all current session ?

Of course, shutdown kills every process. But, please, don’t shutdown without a reason…