TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Devenv: Compose a Developer Environment Easily for PHP with Nix

61 点作者 domenkozar超过 2 年前

6 条评论

wackget超过 2 年前
Honestly I&#x27;ve yet to be convinced of the value of having to learn to use all these extra tools which supposedly make devops &quot;easier&quot;.<p>If I want a PHP environment I&#x27;d launch a VPS or virtual machine and set one up manually with a few standard shell commands. That way I&#x27;m working with the actual technologies themselves and am learning how they work directly instead of forcing myself to learn the syntax and commands of several unrelated technologies (yarn, docker, nix, etc.) which are just wrappers for the &quot;real&quot; setup.<p>These abstractions are usually far less flexible and more restrictive than just setting up the services yourself, anyway.<p>How is going through all of that worth the considerable extra time, effort, and mental energy than just - you know - setting up the services themselves?<p>A single command `yum install httpd php8 mariadb` will get you a working local server stack with very little extra configuration.
评论 #34132553 未加载
评论 #34133945 未加载
评论 #34133474 未加载
评论 #34132865 未加载
评论 #34132314 未加载
评论 #34134867 未加载
评论 #34133141 未加载
评论 #34135472 未加载
评论 #34133716 未加载
评论 #34134534 未加载
评论 #34135750 未加载
评论 #34146221 未加载
rgoulter超过 2 年前
DevEnv looks like the most exciting thing to happen with Nix recently.<p>Previously, I think Nix was more of a benefit for the operations (who benefit from &quot;make deployments where the programs run with the same behaviour). Though, I think Docker containers have already eaten that space.<p>Since Nix Flakes, most of the attention I&#x27;ve seen has been using Nix for developer setups.. where there really isn&#x27;t much which does what Nix does. (VSCode&#x27;s devcontainers &#x2F; GitHub CodeSpaces don&#x27;t seem to get a lot of attention).<p>DevEnv seems excellent for developer setups. I&#x27;m not sure the devenv services will be able to compellingly replace docker-compose setups. But, for nix-empowered developers, the tool looks really neat.
nucleogenesis超过 2 年前
My experience with devenv was disappointing. It claims to play well with existing tools but I ended up screwing around with arcane language-specific env cars to get a simple Python&#x2F;pyenv&#x2F;node setup going. It wasn’t quite so “oh just add your packages and roll” it was just like anything else “add your packages and fiddle with it til it works” and then it basically never worked. I was excited for it but it didn’t really add much value for me
emptysongglass超过 2 年前
For an alternative discussed here on HN 5 days ago there&#x27;s Devbox [1], which uses Nix but doesn&#x27;t require your team to know Nix to get started.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34073950" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34073950</a>
jackconsidine超过 2 年前
This is a great guide! Took a stab at DevEnv a few weeks back after reading about it (and loving the concept). It messed with my OS host path &#x2F; install locations for non-devenv packages and I found the docs to be lacking. So thanks for this great example
评论 #34136107 未加载
fomine3超过 2 年前
devenv is the name of Visual Studio executable for a long time. I wonder why it choose the name.