patzer Posted April 4, 2013 Share Posted April 4, 2013 Hi all, I'm tickled with my new local dev setup, and I thought I'd share in case anyone else wants to try it out or offer suggestions for improvements. Prerequisites: I'm using a Mac running OS X Mountain Lion. 1. Install Homebrew 2. MAMP + dnsmasq (http://eddmann.com/posts/the-ultimate-mamp-setup-hands-down/ and http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again)* * There is currently a typo in the first link's instructions. You need to use address=/.dev/127.0.0.1 in /usr/local/etc/dnsmasq.conf (note the dot in .dev for TLD). I add Homebrew's PHP to /etc/apache2/httpd.conf like so: LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so Then issue a sudo apachectl restart. The first time I hit a new site locally, I need to type the full http://mysite.dev to stop Safari, e.g., from searching Google rather than navigating to the URL. After that it remembers and all is well. 3. Install git vie homebrew and configure; create repos on BitBucket for remote storage. Use git submodules (planned) for ProcessWire and other components, like Bootstrap. I make a "live" branch that I can pull to the server when I'm ready, and other branches as needed. I'm shuffling local tools at the moment, but using TextMate 2 as a primary editor and thinking of CodeKit for browser refresh and LESS/Sass compilation. Wish CSSEdit hadn't been killed as a stand alone product instead of being wrapped into Espresso. On the browsers I'm using a mix of FireFox with Firebug and FireSass, Google Chrome with dev tools, and Safari. I think that's it, so far! EDIT: I did need to uncomment the RewriteBase / option in .htaccess 2 Link to comment Share on other sites More sharing options...
ryan Posted April 7, 2013 Share Posted April 7, 2013 (Topic moved from Getting Started to Dev Talk) Looks like a good setup! I'm not totally clear about exactly what Homebrew is, but I love the name. Link to comment Share on other sites More sharing options...
yellowled Posted April 8, 2013 Share Posted April 8, 2013 I'm not totally clear about exactly what Homebrew is, but I love the name. Well, it's a package manager for OSX. You may have heard of MacPorts, which is similar. Basically, Homebrew makes it easy to install software which is neither included in OSX nor available in the AppStore. For instance, I use it to install (and update) node.js. 1 Link to comment Share on other sites More sharing options...
patzer Posted April 10, 2013 Author Share Posted April 10, 2013 Homebrew is just so much better than MacPorts or any of the other prior attempts at package management. It works really well. Fast, light, no sudo privileges needed. I use it with the Apple command line compiler, so no need for Xcode on my SSD. http://mxcl.github.io/homebrew/ Link to comment Share on other sites More sharing options...
Martijn Geerts Posted April 10, 2013 Share Posted April 10, 2013 For PHP I use http://php-osx.liip.ch/ It uses the Apache installation, which comes with OS X. I use this for many many years now and it works great, whitout a problem. (Although i'm not a terminal guy) Link to comment Share on other sites More sharing options...
Recommended Posts