TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Docker-inspired Heroku clone in 100 lines of PHP

60 pointsby igorwover 9 years ago

9 comments

rand1012over 9 years ago
I have never found "X lines of code" to be impressive. Write clean code and polish it and make it readable. Who cares how long it is. Hackers brag about lines, not engineers.
评论 #10772632 未加载
评论 #10772577 未加载
评论 #10772964 未加载
评论 #10774283 未加载
khwhahnover 9 years ago
What about dokku...loads of plugins and easily extendable.... <a href="https:&#x2F;&#x2F;goo.gl&#x2F;JzMstI" rel="nofollow">https:&#x2F;&#x2F;goo.gl&#x2F;JzMstI</a>
评论 #10773478 未加载
评论 #10774375 未加载
kenshawover 9 years ago
Dokku is more complete, and works more or less just like Heroku. It&#x27;s written in Bash and uses Docker for containers.
jacques_chesterover 9 years ago
I work on the fringes of what is, arguably, a Heroku alternative.<p>Heroku does slightly more than stage and place apps, guys.
synchroneover 9 years ago
Am I the only one who noticed `php -S` is used, which is a debug server, not intended even for testing purposes?<p>One cannot seriously consider this for anything except a proof that basic utilities like zip, netcat, supervisord and php can be scripted with a higher-level language to hack together something that somehow works.<p>That being said, I like this cool hack.
guillegetteover 9 years ago
I would add that when you use a framework not sure if the 100 lines actually counts
tylermautheover 9 years ago
Is this real or ironic?
评论 #10773999 未加载
deepflameover 9 years ago
Hmm, but this only runs PHP projects if I understand the code correctly.
pavel_lishinover 9 years ago
<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;igorw&#x2F;1d67f422689017e814a8#file-app-php-L49" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;igorw&#x2F;1d67f422689017e814a8#file-app-...</a><p>Is it possible to craft a zip file that will write data to parent directories, or an explicit path?
评论 #10772540 未加载
评论 #10772434 未加载