it works :) See the bottom of this page: http://hello.bareku.com/ Bareku is my private PaaS and basically I can select the version of PHP I want for my project by just changing one line in a "phpack.txt" file at the root of my Photon project. The system automatically detect it, select the version of php and build and run the project with the right version. I have tested with 5.3.5, 5.3.8 and of course the latest RC. Example of a push to my PaaS: $ git push origin master Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 297 bytes, done. Total 3 (delta 1), reused 0 (delta 0) remote: -----> hello app. remote: -----> PHP/Photon project detected. remote: Running with php-5.4.0RC3. remote: -----> Fetching latest Photon. remote: -----> Building the .phar project file. remote: -----> Building the slug file. remote: Compiled slug size is 124KB. remote: Build: ef5bf021-c885-4d6e-b8aa-1b408923365d remote: -----> Deploying to the nodes. remote: -----> Set application runtime configuration. remote: Application version: 14 remote: -----> Job done. To git@git.bareku.com:repositories/hello.git 067967c..4bf43ef master -> master After the push, the old version of the project is stopped and the new is started with possibly a different version of PHP. I am extremely happy with Mongrel2, ZMQ, Photon. Developing with these tools is really a paradigm shift compared to the traditionnal LAMP stack or a derivation of the LAMP stack. I will refresh the sources of the Photon website to make it "Bareku" friendly, that is, to be nicely packageable in a phar (this is specially for the assets) and will push the repository in the open, you will be able to contribute and I will push to Bareku to update. Bareku is not for static websites, so the PEAR channel at dist.photon-project.com will stay a static website. Yes, everything will be slowly open sourced. loïc
I've been reading the latest posts on your blog, and I have to say this sounds amazing. I lack some time to continue experimenting with Photon lately, but seeing what you achieved with bareku gives me tons of ideas. As you say, it's a paradigm shift...cleaner, smarter, more efficient than the current coding/packaging/deployment/execution practices. Great job Loïc ! Nicolas On Fri, Dec 9, 2011 at 9:25 PM, Loic d'Anterroches <loic@ceondo.com> wrote: > it works :) See the bottom of this page: > > http://hello.bareku.com/ > > Bareku is my private PaaS and basically I can select the version of PHP > I want for my project by just changing one line in a "phpack.txt" file > at the root of my Photon project. The system automatically detect it, > select the version of php and build and run the project with the right > version. I have tested with 5.3.5, 5.3.8 and of course the latest RC. > > Example of a push to my PaaS: > > $ git push origin master > Counting objects: 5, done. > Delta compression using up to 4 threads. > Compressing objects: 100% (2/2), done. > Writing objects: 100% (3/3), 297 bytes, done. > Total 3 (delta 1), reused 0 (delta 0) > remote: -----> hello app. > remote: -----> PHP/Photon project detected. > remote: Running with php-5.4.0RC3. > remote: -----> Fetching latest Photon. > remote: -----> Building the .phar project file. > remote: -----> Building the slug file. > remote: Compiled slug size is 124KB. > remote: Build: ef5bf021-c885-4d6e-b8aa-1b408923365d > remote: -----> Deploying to the nodes. > remote: -----> Set application runtime configuration. > remote: Application version: 14 > remote: -----> Job done. > To git@git.bareku.com:repositories/hello.git > 067967c..4bf43ef master -> master > > After the push, the old version of the project is stopped and the new is > started with possibly a different version of PHP. > > I am extremely happy with Mongrel2, ZMQ, Photon. Developing with these > tools is really a paradigm shift compared to the traditionnal LAMP stack > or a derivation of the LAMP stack. > > I will refresh the sources of the Photon website to make it "Bareku" > friendly, that is, to be nicely packageable in a phar (this is specially > for the assets) and will push the repository in the open, you will be > able to contribute and I will push to Bareku to update. > > Bareku is not for static websites, so the PEAR channel at > dist.photon-project.com will stay a static website. > > Yes, everything will be slowly open sourced. > > loïc >
On 2011-12-12 10:01, Nicolas wrote: > I've been reading the latest posts on your blog, and I have to say this > sounds amazing. > > I lack some time to continue experimenting with Photon lately, but seeing > what you achieved with bareku gives me tons of ideas. As you say, it's a > paradigm shift...cleaner, smarter, more efficient than the current > coding/packaging/deployment/execution practices. Thank you Nicolas. What is even better is that everything is done with "off the shelves" components. Basically, I am not writing a special bit of software, I am just doing a bit of integration. As said, this is my "good for 10 the next 10 years" system, so you can expect to have it nurtured, released as OSS and improved a lot within the next months/years. First this week will be the support of Python applications. My goal is to support PHP/Photon and Python cleaning for my scientific requirements. loïc > On Fri, Dec 9, 2011 at 9:25 PM, Loic d'Anterroches <loic@ceondo.com> wrote: > >> it works :) See the bottom of this page: >> >> http://hello.bareku.com/ >> >> Bareku is my private PaaS and basically I can select the version of PHP >> I want for my project by just changing one line in a "phpack.txt" file >> at the root of my Photon project. The system automatically detect it, >> select the version of php and build and run the project with the right >> version. I have tested with 5.3.5, 5.3.8 and of course the latest RC. >> >> Example of a push to my PaaS: >> >> $ git push origin master >> Counting objects: 5, done. >> Delta compression using up to 4 threads. >> Compressing objects: 100% (2/2), done. >> Writing objects: 100% (3/3), 297 bytes, done. >> Total 3 (delta 1), reused 0 (delta 0) >> remote: -----> hello app. >> remote: -----> PHP/Photon project detected. >> remote: Running with php-5.4.0RC3. >> remote: -----> Fetching latest Photon. >> remote: -----> Building the .phar project file. >> remote: -----> Building the slug file. >> remote: Compiled slug size is 124KB. >> remote: Build: ef5bf021-c885-4d6e-b8aa-1b408923365d >> remote: -----> Deploying to the nodes. >> remote: -----> Set application runtime configuration. >> remote: Application version: 14 >> remote: -----> Job done. >> To git@git.bareku.com:repositories/hello.git >> 067967c..4bf43ef master -> master >> >> After the push, the old version of the project is stopped and the new is >> started with possibly a different version of PHP. >> >> I am extremely happy with Mongrel2, ZMQ, Photon. Developing with these >> tools is really a paradigm shift compared to the traditionnal LAMP stack >> or a derivation of the LAMP stack. >> >> I will refresh the sources of the Photon website to make it "Bareku" >> friendly, that is, to be nicely packageable in a phar (this is specially >> for the assets) and will push the repository in the open, you will be >> able to contribute and I will push to Bareku to update. >> >> Bareku is not for static websites, so the PEAR channel at >> dist.photon-project.com will stay a static website. >> >> Yes, everything will be slowly open sourced. >> >> loïc >> -- Dr Loïc d'Anterroches Founder Céondo Ltd w: www.ceondo.com | e: loic@ceondo.com t: +44 (0)207 183 0016 | f: +44 (0)207 183 0124 Céondo Ltd Dalton House 60 Windsor Avenue London SW19 2RR / United Kingdom