タグ

2015年3月12日のブックマーク (3件)

  • Unicorn!

    AI & MLLearn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry. Generative AILearn how to build with generative AI. GitHub CopilotChange how you work with GitHub Copilot. LLMsEverything developers need to know about LLMs. Machine learningMachine learning tips, tricks, and best practices. How AI code generation worksExplore the capabilities and be

    Unicorn!
  • Deploying of Rails with Nginx and Unicorn

    rails_deploy.md Rails デプロイ Ruby on Railsの欠点と言えば,デプロイ作業が若干面倒くさいところかもしれません. コンテンツを公開ディレクトリに設置してパーミッションを設定するだけでは動作しません. ここではRailsのデプロイ方法について簡単に紹介します. Rackライブラリ RackはRuby系のWebサーバやWebアプリケーションフレームワークで主に使われています. Rackは,WebサーバとWebアプリケーションをつなぐインターフェースの役割を果たすライブラリです. サーバ,アプリ共にRackで共通化してしまえば,どちらかを差し替えても問題なく動作します. つまり,Rackに対応していればどんなサーバでも,どんなフレームワークでも組み合わせることができるというわけです. RailsもこのRackを使用しているので,Rackに対応したサーバを使わない

    Deploying of Rails with Nginx and Unicorn
  • KOSHIGOE学習帳 - [Ruby] Unicorn 概要

    {{toc_here}} はじめに Unicornは、Unix系システムで動作するRackアプリケーション用サーバ。接続時間が短いことを前提とした設計となっている。 - http://unicorn.bogomips.org/ preforkモデル Unicornはpreforkモデルを採用している。 Reverse Proxy └TCP Socket[0.0.0.0:8080] > Unicorn(Master) ├(fork)─Worker[0] < TCP Socket[0.0.0.0:8080] ├(fork)─Worker[1] < TCP Socket[0.0.0.0:8080] &#9478; └(fork)─Worker[N-1] < TCP Socket[0.0.0.0:8080] マスタプロセスからforkした複数のワーカープロセスがあり、クライアントからのリクエストを