词汇:production

n. 成果;产品;生产;作品

相关场景

We're not gonna change that for this little example, but now let's check in that PWA files, and then let's deploy to production one more time. and as you can see, look in the top right corner, when I reload it, we now have that little install icon in Chrome. and if I click that little install icon, I'm gonna get this prompt, and boom! I have a PWA running in production for my Rails application.
>> Rails 8.0.1 You are in good company
we are in with production authentication for the entire system. all right one last thing, let me show how to turn this web application into a PWA as well.
>> Rails 8.0.1 You are in good company
SO now, we're created that user in production using our Kamal consol! I can log in with that user/pasword.
>> Rails 8.0.1 You are in good company
So, be careful when you create things, that are gonna be created on the server side in your real database.The database, by the way? we haven't talked much about that, and that is because we're using SQLite. So, there is nothing to configure,there's nothing to set up, SQLite is now a suitable database for production with Rails. we have tuned it with all the right pragmas,to run SQLite well in production, you of course still need to set up a way to back that up, but everything else is preconfigured for you.
>> Rails 8.0.1 You are in good company
Kamal console:
Kamal also gives you a way to start a console on the server side that is just like the console I showed you earlier that ran in development! You can see here, it reminds you that you are in production.
>> Rails 8.0.1 You are in good company
Because we had not run our DB seeds! Now, I could run DB seed in production, but let me show you another way doing it .
>> Rails 8.0.1 You are in good company
All right , let's save that and hop back,and see a reload here, now, we have a sign out button, and we can sign out, and that's all it should be. let's deploy this to production, we're gonna just check this thing into Git, deploy it straight to production, go back to our alpha.software...Oops! That didn't work. Why did that not work?
>> Rails 8.0.1 You are in good company
Common system is of course these as well, let's add one of those comments, and now we have the entire application running in production, wasn't that easy?
>> Rails 8.0.1 You are in good company
If we go back here and reload not in production, boom! We are live in production with our whole setup, everything is working, we can upload the active storage files directly to it.
>> Rails 8.0.1 You are in good company
And that's basically the rhythm you will be in when you're working on a Rails and application and you're deploying to production.
>> Rails 8.0.1 You are in good company
So in production, you actually need to manually specify the route. So we can go down here, and uncomment this, that sets what the route is going to be, we're just gonna point it to post stud index.
>> Rails 8.0.1 You are in good company
There was a 404 here! That's because if we go back to out route file, I have not defined route! And in production, you're not gonna get that screen we saw with the Rails version and the Ruby version, that is only for development.
>> Rails 8.0.1 You are in good company
Kamal:
All right, that is very neat. Now, let's go to production! Because of course, you're not just here to create a Hello World app that runs on your own machine, you want to get this out into the world! And rails8 and forward ships with Kamal, a simple tool for deploying your web application anywhere.
>> Rails 8.0.1 You are in good company
But we can also have a look at a specific file, you'll see it matches exactly what we have back there. That's not a development setup! That is what we're shipping in production. There is no minification, there's no transpilation, there's none of that nonsense because you just don't need it.
>> Rails 8.0.1 You are in good company
This is exceptionally helpful for interacting with your domain model, updating things on the fly, and as you will later, updating things even once you've deployed this to production!
>> Rails 8.0.1 You are in good company
This is the thing you're gonna see, when you start up a new Rails application, it'll tell you which version you're on, both for the ruby version, the Rails version, and the Rack version. That's running on localhost:3000 by default. But if we do slash posts here, you'll see the scaffold interface that we generated. Now, this is the index action, the one we just looked at in the view and from the controller. But if we click the New, you see here we have form for creating the new post with its title and its body. it's quiet basic, to put it mildly right now, but all the actions are mapped out. This scaffold interface is not meant for shipping into production, it is meant to showing you how to build a Rails application with the basics, and then you make it look pretty, you make it look nice.
>> Rails 8.0.1 You are in good company
Welcome to Ruby on Rails. If you are looking to go from Hello World to IPO, you've come to just the right place. I'm gonna build a simple application that shows you the basic of Ruby on Rails and how you put it into production. Let's go.
>> Rails 8.0.1 You are in good company
He suggested the government set strict standards for fireworks production to strike a balance between tradition and safety.
>> 51-Reward for Virtue
4P-4C:
production-> customer benefit(顾客看来有无增加利益); price -> cost to customer (客户来看是否定价合理); Place -> Convenience(顾客是否容易取得); Promotion -> communication(与顾客双向沟通);.
>> 市场营销
Kamal offers zero-downtime deploys, rolling restarts, asset bridging, remote builds, accessory service management, and everything else you need to deploy and manage your web app in production with Docker. Originally built for Rails apps, Kamal will work with any type of web app that can be containerized.
Kamal提供零停机部署、滚动重启、资产桥接、远程构建、配件服务管理,以及使用Docker在生产环境中部署和管理web应用程序所需的一切。Kamal最初是为Rails应用程序构建的,它可以与任何可以容器化的web应用程序一起使用。
>> Rails8
Finally, making it easier to go to production also means we ought to make it easy to be secure. Rails has been assembling high-level abstractions for the key components of an excellent authentication system for a long time to bring that ease. We’ve had has_secure_password since Rails 5, but also recently introduced generates_token_for :password_reset along with authenticate_by in Rails 7.1. Now, with Rails 8, we’re putting all the pieces together in a complete authentication system generator, which creates an excellent starting point for a session-based, password-resettable, metadata-tracking authentication system.
最后,使生产更容易也意味着我们应该使安全更容易。长期以来,Rails一直在为一个优秀的身份验证系统的关键组件组装高级抽象,以简化这一过程。我们从Rails 5开始就有has_secure_password,但最近在Rails 7.1中引入了generates_token_for:password_reset和authenticate_by。现在,使用Rails 8,我们将所有部分整合到一个完整的身份验证系统生成器中,该生成器为基于会话、密码可重置、元数据跟踪的身份验证体系创建了一个很好的起点。
>> Rails8
At 37signals, we’re building a growing suite of apps that use SQLite in production with ONCE. There are now thousands of installations of both Campfire and Writebook running in the wild that all run SQLite. This has meant a lot of real-world pressure on ensuring that Rails (and Ruby) is working that wonderful file-based database as well as it can be.
37signals正在构建一套越来越多的应用程序,这些应用程序在生产环境中使用SQLite和ONCE。现在有成千上万的Campfire和Writebook在野外运行,它们都运行SQLite。这意味着在确保Rails(和Ruby)尽可能好地运行基于文件的数据库方面,现实世界面临着很大的压力。
>> Rails8
On top of the trifecta of Solid adapters that makes it possible for SQLite to power Action Cable, Rails.cache, and Active Job, a bunch of work has gone into making the SQLite adapter and Ruby driver suitable for real production use in Rails 8.
除了使SQLite能够为Action Cable、Rails.cache和Active Job供电的Solid适配器之外,还进行了大量工作,使SQLite适配器和Ruby驱动程序适合Rails 8中的实际生产使用。
>> Rails8
Ready:
Getting SQLite ready for production.
正在为SQLite的生产做好准备。
>> Rails8
Solid Queue has been meticulously developed within the pressures of a real production environment over the last 18 months, and today it’s running 20 million jobs per day for HEY alone at 37signals.
Solid Queue是在过去18个月里,在真实生产环境的压力下精心开发的,如今,仅HEY就在37signals上每天运行2000万个作业。
>> Rails8