composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install_dir>
cd <install_dir>
# Install `dnsmasq` and configure for *.test domains | |
$ brew install dnsmasq | |
$ vim /usr/local/etc/dnsmasq.conf | |
# Reload configuration and clear cache | |
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ dscacheutil -flushcache |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
#!/usr/bin/env bash | |
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq) | |
for author in ${authors}; do | |
echo "${author} = NAME <USER@DOMAIN>"; | |
done |
# The MySQL database server configuration file. | |
# | |
# DESC: InnoDB mainly, heavy queries, fewer connections, 4GB RAM | |
# | |
# Remember to edit /etc/mysql/debian.cnf when changing the socket location. | |
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
# This was formally known as [safe_mysqld]. Both versions are currently parsed. |
# FILE: /etc/nginx/conf.d/assets.conf | |
# Directives to send expires headers and turn off 404 error logging for Static assets | |
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpe?g|gif|png|ico|zip|pdf|t?gz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|swf|bmp|txt|rtf|md)$ { | |
access_log off; | |
log_not_found off; | |
expires max; | |
add_header Cache-Control public; | |
} |
#!/usr/bin/env bash | |
################################################################################ | |
# | |
# MacOS Homebrew-based PHP version switcher. | |
# | |
################################################################################ | |
# Define read-only script variables | |
# ------------------------------------------------------------------------------- | |
declare -r SPHP_BREW_PREFIX="$(brew --prefix | sed 's#/#\\\/#g')" |
A great way to get Docker running smoothly on OS X is to use the awesome project Dinghy. It is basically:
Docker on OS X with batteries included, aimed at making a more pleasant local development experience. Runs on top of docker-machine.
Some of the benefits are:
- Faster volume sharing using NFS rather than built-in virtualbox/vmware file shares
- Filesystem events work on mounted volumes
From the Apache Software Foundation, "Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON, Ruby, and Python APIs, hit highlighting, faceted search, caching, replication, and a web administration interface." Magento has had built-in support for Solr since Enterprise verion 1.8.
The following instructions show how to complete a basic installation and configuration of Apache Solr for use with Magento Enterprise on CentOS/RHEL 6. These instructions the Java JDK with Tomcat rather than jetty.
Note: Solr should be on a dedicated server if possible, especially for large installations, as it can be resource intensive