Help me test Tentacles Installation!
I want to make Tentacle a dream to install.
For the time being I would like to get a group of potential users to test the setup process.
The ideal tester should be a little techie, you don’t need to be a hard core nerd but you should understand what the errors mean.
And please send me feedback on the blog, or send a tweet, even an email.
Thanks!
DIY simple staging server.
While working on Tentacle I needed a simple solution for testing code on a remote web server.
In the past I would work locally and syncing with FTP to the server and then tested off of the remote server, I used SVN for my source control. Within the last year I have started working locally and using Git as my main source control.
This left a bit of a gap in my process where I could no longer test on a remote server without updating it manually by S/FTP or opening terminal and manually calling a git pull.
Open terminal and manually git pull it did break up the work flow a bit so using the Dingo framework I created a very simple Git helper and gave it its own URL something like git/pull.
I then used a Github Post-Receive URL Hook found under admin/service hooks that pointed to my staging server git pull URL, every time I do a push to Github, Github will then automatically fire the URL thus triggering the pull helper.
One little note is that if you check out a dev branch on a staging server and also have a live server you would add a second URL with the same code on that liver server. One push would update both sites.
Just make sure the live server is on the right branch.
If you don’t feel like using a hook then no problem at all. Just call the URL in the browser and you will see the Git pull message.
Dingo a Lightweight MVC PHP Framework
I have been using a small PHP MVC Framework called Dingo Framework.
Dingo is a Rapid Development Application Framework written in PHP by Evan Byrme. Dingo allows you to create dynamic changing websites easily and quickly.
Dingo is a relatively new full featured framework at a compact size of 70KB, It supports Fancy URL’s, Access Control List, User Authentication, ORM, and simple no SQL database interaction.
Dingo is very easy to leverage, adding 3rd parties libraries is dead easy. The configuration is simple with support for multiple database connections, auto load libraries and helpers.
Dingo is well documented, but a little out dated, You are probably better off checking GitHub for more up to date code.
Try the Dingo TextMate Bundle!
PHP’s Memory Usage
This is a handy little Snippet that goes well with PHP Microtime. Not only are we concerned with our scripts execution time but we also want to make sure we are not using an exorbitant amount of memory in the process.
At the top of your script lets place the code that will start PHP’s Micro time.
$time_start = microtime(true);
At the bottom of your page, just before the “