Skip to content

Instantly share code, notes, and snippets.

@ganoro
Created November 27, 2011 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganoro/1397617 to your computer and use it in GitHub Desktop.
Save ganoro/1397617 to your computer and use it in GitHub Desktop.
deployment post_stage hook
<?php
/* @var string holds the application (absolute) path */
$appLocation = getenv('ZS_APPLICATION_BASE_DIR');
/* chmod cache and logs */
chmod ( $appLocation, 0775 );
chmod ( $appLocation . '/app/', 0775 );
chmod ( $appLocation . '/app/cache/', 0775 );
chmod ( $appLocation . '/app/logs/', 0775 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment