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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What non PHP framework resembles the structure/deployment of Laravel/Yii

2 点作者 steven_braham将近 8 年前
PHP has been my main language for years, but I want to learn other languages to create web apps. The thing I like the most of PHP is how easy it is to deploy and develop an application. When deploying your app, you only have to update the files with a file transfer or a deployment script, because a PHP interpreter is always running.<p>Furthermore, all PHP frameworks like Yii, Laravel and CodeIgniter follow the same conventions for structuring a project.<p>I&#x27;ve tried to learn Django and like the syntax. However, I don&#x27;t like the idea that a project contains multiple apps. I prefer to have large applications that do multiple things. Also, the whole template&#x2F;view part is a bit confusing for me.<p>I&#x27;m curious what other platforms&#x2F;languages are the most similar to the structure and deployment of Yii and Laravel projects.<p>The Java play framework seems like an interesting option.

2 条评论

mtmail将近 8 年前
Ruby on Rails. You&#x27;ll immediately notice an &#x27;app&#x27; directory. Resources are in app&#x2F;assets, controllers in app&#x2F;controllers, models in app&#x2F;models and views in app&#x2F;views. There&#x27;s a routes.rb file and a command line interface (&#x27;rake routes&#x27; does the same as &#x27;php artisan routes:list&#x27;, &#x27;rake db:migrate&#x27; is the same as &#x27;php artisan migrate&#x27;).<p>While you can deploy Rails by just copying files (it will reload classes and recompile assets on page refresh whenever possible) it&#x27;s still a best practice to have the dev and production environment different.
评论 #14987926 未加载
rubyfan将近 8 年前
See also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14974767" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14974767</a>
评论 #14987935 未加载