##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /home/website/web; | |
| rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
| try_files $uri @rewriteapp; | |
| location @rewriteapp { |
| source "http://rubygems.org" | |
| group :development do | |
| gem 'rake' | |
| gem 'guard' | |
| gem 'coffee-script' | |
| gem 'rb-fsevent' | |
| gem 'rb-inotify' | |
| gem 'compass', '0.11.5' | |
| gem 'sass', '3.1.5' | |
| gem 'guard-compass' |
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules