Skip to content

Instantly share code, notes, and snippets.

@ftassi
Created April 30, 2012 07:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftassi/2556166 to your computer and use it in GitHub Desktop.
Save ftassi/2556166 to your computer and use it in GitHub Desktop.
#!/bin/bash
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`
mkdir -p /Volumes/ramdisk/symfony/logs
mkdir -p /Volumes/ramdisk/symfony/cache
sudo chmod +a "ftassi allow delete,write,append,file_inherit,directory_inherit" /Volumes/ramdisk/symfony/cache /Volumes/ramdisk/symfony/logs
mkdir -p /Volumes/ramdisk/symfony/cache/annotations
mkdir -p /Volumes/ramdisk/symfony/cache/doctrine/orm/Proxies/
chmod -R 777 /Volumes/ramdisk/symfony/cache
@erivello
Copy link

ci piace

@p16
Copy link

p16 commented Aug 8, 2012

To complete the configuration, you will need to add this parameter to your parameters_test.ini or config_test.yml

kernel.cache_dir = /Volumes/ramdisk/symfony/cache
kernel.logs_dir = /Volumes/ramdisk/symfony/logs

@fallucch
Copy link

Mi sembra abbastanza inutile eseguire "chmod +a" e poi eseguire "chmod -R 777" della stessa cartella... Che senso ha?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment