By default ALL mac apps are portable, just load them up on a USB stick and your Dev environment will work on any MAC that meets the requirments of the applications on the stick. BOTTOMLINE is that PHPStorm will use the default installation of PHP as installed by apple no matter what interpreter you tell it to use (it's all about paths and environmental variables folks and you can verify this by opening a command line from inside the IDE and running which php), this will lead to all kinds of funny stuff happening when using a prebuilt stack like MAMP so, what if you are one of those Dev's who just want to install MAMP, XAMPP or AMPP? Yeah sure we could install MySQL and all the other bells directly to the default OS but some of us want to have a portable dev environment and using a pre built stack gives you this. This first point goes back to my little speech above. So on to the challange and quick but otherwise dirty solution to set my MacBook Pro up as a Dev workstation. Are you listening M$ get with the program and apple, get with the repo program. Well, not everything as the GUI shell is still Mac or Windows or KDE or whatever and in order to get an app on their you have to code for that environment but underneath all that is an open world where tons of software applications already exsist and can coexsist with much fanfare. I PREDICT: ]:) That one day all OS vendors will come to the realization as apple did, that you can have a proprietary OS that sit's nicely on a posix compliant core that will close the gaps between systems and make everything play nicely. Oh, I found out the hard way that if you tamper with anything and need to revert back you cannot just pop in the OSX disc and repair Oh No you must reinstall the entire OS. You would think that since the guys and gals over at macports did all the work that apple would give them a bone and make it the official repo so things get installed gracefully where intended providing an upgrade path while in between major OSX releases. This is where they don't play nice, even with macports and fink as non offical repos you still will end up with multiple installations of certain applications. But what if you want PHP 5.4 or the newest Apache install. Bottomline is these are pretty much no touch installations, no upgrade, no nothing. X-( That's right and here is why, as it stands OSX ships with Apache, PHP, Java and Python installed and you would be hell bent on even tampering with those installations because you don't have inside knowledge as to what dependencies OSX is applying to these default installs nor if apple dev's altered the core for their own purposes. LEAVE THE INSTALLATION OF SERVER PROFILES TO THE USERS. Now if we could get M$ to do the same with windows and get them to understand one thing. Yeah, Yeah I know it's a Mac but still, my thought pattern has always been that Linux and Unix based OS's have a lot to offer and everysince OS X made it's intel debut running ontop of a posix compliant core well let's just say I felt somebody somewhere was using their brain. Ok, So first thing we need to understand is that the dev's over at apple are not playing nice for having a posix compliant OS. Sure there are some plugins for sublime that make it a little less painful but not painless enough. Don't get me wrong, I love sublimetext but I got work to do and running several programs is not working for me. This means switching back and forth between several different programs to accomplish what PHPStorm can do out the box. Ok, so my normal editor of choice has been SubLimeText 2, Oh how I love this editor but it can be a real pain to get complete debugging, unittesting and code coverage using Sublimetext without the use of external tools. OMG, :^O this has been a challanging thing to accomplish but I figured it out and to help others who may experiance similar issues I will make this painless for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |