Posts

Showing posts with the label Frameworks

Zend Framework 3 Now Available

Image
The Greatest Framework Since ZF 1 After 17 months of effort, hundreds of releases, tens of thousands of commits by hundreds of contributors, and millions of installs, Zend finally announced the immediate availability of Zend Framework 3 . Increased Performance According to Zend, the performance increase is ~ 4x on PHP 5, and even greater performance on PHP 7 - which is now fully supported - compared to previous version of Zend Framework. Naturally, they claim that they have improved documentation. Ships with a Micro-Framework The Zend Framework 3 also included a number of new features, primarily around PSR-7 (HTTP Message interfaces) support. These include: Diactoros : the original and leading PSR-7 implementation in the PHP ecosystem. Stratigility : a PSR-7 middleware foundation based on the node.js Sencha Connect Expressive : a PSR-7 middleware microframework If you are already familiar with our MVC, or want to get started with it, we have created a new ve...

Running your node.js express web apps in port 80

Image
You use node.js and express framework - you have made great choice! By default, express application will run on port 3000, and it is fine. In production environment, you may want to use nginx as a forward proxy (and I will write next post about it) but another way is to run your app in port 80. Assuming that your app.js  already contains following: app.configure(function(){ app.set('port', process.env.PORT || 3000); ... }); In shell, you can type following command: PORT=80 node app.js or if you use forever , then: PORT=80 forever start app.js On your OSX you may get following warning: TypeError: Cannot read property 'getsockname' of undefined The cause for this is general problem - you need to have root privileges in order to run applications in port lower than 1024. To avoid this, you can type sudo PORT=80 node app.js and your application will work normally in port 80. Another common mistake is that you may still have Apache runnin...