Skip to content

Instantly share code, notes, and snippets.

@erfanimani
Last active June 5, 2016 08:53
Show Gist options
  • Save erfanimani/83649251b5b249f5d615 to your computer and use it in GitHub Desktop.
Save erfanimani/83649251b5b249f5d615 to your computer and use it in GitHub Desktop.
Prepare Magento deployment hook for Envoyer.io (Install Composer Dependencies - After)
cd {{project}}
mkdir -p storage/media
mkdir -p storage/var
chmod -fR g+w storage || true
cp -rTv {{release}}/docroot/media/ storage/media/
cp -rTv {{release}}/docroot/var/ storage/var/
rm -r {{release}}/docroot/media
rm -r {{release}}/docroot/var
ln -s {{project}}/storage/media {{release}}/docroot/media
ln -s {{project}}/storage/var {{release}}/docroot/var
cd {{release}}/docroot/app/etc
ln -s local.xml.staging local.xml
cd {{release}}/docroot
ln -s ../.htaccess.staging .htaccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment