Posted By

isholgueras on 09/14/10


Tagged

php


Versions (?)

Deploying php applications


 / Published in: Bash
 

It's not bash code. It's only a good description

  1. #Get last code
  2. svn export svn://path/to/repository/tags/RELEASE_VERSION /usr/local/application/releases/TIMESTAMP
  3. stop services (Apache, daemons)
  4. run unlink /usr/local/application/current && ln -s /usr/local/application/releases/TIMESTAMP /usr/local/application/current
  5. run ln -s /usr/local/application/var /usr/local/application/releases/TIMESTAMP/var
  6. run /usr/local/application/current/scripts/migrate.php
  7. start services

Report this snippet  

You need to login to post a comment.