> gem install bundler Gemfile という名前のファイルをアプリのルートに作成します。このファイルでは、アプリを実行するために必要な gem を指定します。 source "https://rubygems.org" gem 'sinatra', '4.0' このファイルはアプリの一部であるため、Git リポジトリに追加します。また、.bundle ディレクトリを .gitignore ファイルに追加します。Gemfile を追加すると、他の開発者は簡単に各自の環境をアプリを実行できる状態に整えることができます。 > bundle install このコマンドにより、Gemfile で指定されているすべての gem がアプリケーションで利用できることが保証されます。bundle install を実行すると Gemfile.lock も生成され、これを
サポートされているリリースの新しいバージョンは、通常 Node.js チームによる公式リリースから 24 ~ 48 時間以内に Heroku で使用できるようになります。Node.js の古いバージョンはいつでもプラットフォームにインストールできますが、サポートされているバージョンにアプリケーションを段階的にアップグレードする場合にのみ使用します。 推奨: 本番環境ではアクティブ LTS またはメンテナンス LTS リリースのみを使用する サポートされている Node.js バージョンの最新のパッチリリースを常に実行する Node.js リリースのサポート終了 (EOL) 前にアップグレードする Node.js バージョンの指定 開発やテストで使用しているランタイムに一致する Node.js バージョンを常に指定します。ローカルでバージョンを検索するには、node --version
Additional Resources Home Elements Products Pricing Careers Help Status Events Podcasts Compliance Center Heroku Blog Heroku Blog Find out what's new with Heroku on our blog. Visit Blog When deploying a Ruby application to Heroku, a version of Bundler will be installed and used to pull down the dependencies of your application. To see the current Bundler version on Cedar-generation apps, see the R
リクエストを並列に処理する Web アプリケーションの方が、一度に 1 つのリクエストしか処理しない Web アプリケーションよりはるかに効率的に dyno リソースを使用します。そのため、本番環境のサービスを開発および実行する場合は常に、並列リクエスト処理を使用することをお勧めします。 Rails フレームワークは最初、一度に 1 つのリクエストを処理するように設計されました。このフレームワークは、この設計から、1 つの Ruby プロセスでのリクエストの並列処理を可能にするスレッドセーフ実装に徐々に移行しています。ただし、これは現在ほとんどの Ruby アプリケーションでサポートされていません。 Unicorn Web サーバーを使用すると、1 つの dyno で複数の Ruby プロセスを実行することにより、すべての Rails アプリケーションを並列に実行できます。 このガイドでは
¹: Container based apps don’t include the curated and maintained operating system layer of the other Heroku stacks. You’re responsible for selecting and maintaining the base layer of containers you deploy. Every stack on Heroku supports different operating system packages and language runtime versions. This support is typically confined to software that was still actively developed by the respecti
This page is not applicable to Fir apps. You can’t change the stack on Fir apps from cnb. You can upgrade the base image used on Fir apps via project.toml when a new base image, like heroku/heroku:26, becomes available in the future. Introduction This article describes how to upgrade your app to use the latest Heroku stack. Refer to the Stacks article to understand what a stack is, which stacks ar
Last updated September 30, 2024 By default, Heroku provides free Automated Certificate Management (ACM) for all applications. If you want to use a different certificate authority for your application or a wildcard certificate on a Private Space app, follow these steps to acquire a certificate manually. Purchasing an SSL certificate varies in cost and process depending on the vendor. ExpeditedSSL a
With Automated Certificate Management (ACM), Heroku automatically manages TLS certificates for apps in the Common Runtime, and for apps in Private Spaces that enable the feature. Certificates handled by ACM automatically renew one month before they expire, and new certificates are created automatically whenever you add or remove a custom domain. All applications include ACM for free. Automated Cer
While older versions of Node.js are always available to install on the platform, only use them to incrementally upgrade an application to a supported version. We recommend: Using only Active LTS or Maintenance LTS releases in production Always running the latest patch release of supported Node.js versions Upgrading before a Node.js release is End-of-life (EOL) Specifying a Node.js Version Always s
Additional Resources Home Elements Products Pricing Careers Help Status Events Podcasts Compliance Center Heroku Blog Heroku Blog Find out what's new with Heroku on our blog. Visit Blog Last updated October 24, 2025 Heroku can run Ruby applications across a variety of Ruby implementations and includes support for framework-specific workflows. This document contains version support info. For genera
SSL is a cryptographic protocol that provides end-to-end encryption and integrity for all web requests. Enable SSL on apps that transmit sensitive data to ensure all information is transmitted securely. Heroku SSL is a combination of features that enables SSL for all Heroku apps. Heroku SSL uses Server Name Indication (SNI), an extension of the widely supported TLS protocol. Certificate Options Ap
When you deploy a Ruby application without a Procfile, a default webserver will be used. For Rack this means $ bundle exec rackup is run for Rails $ rails server. Depending on the version of these libraries and what gems you have in your Gemfile, the WEBrick server may be used to run your production application. Even if your application does not use WEBrick, it is HIGHLY recommended you do not rel
Additional Resources Home Elements Products Pricing Careers Help Status Events Podcasts Compliance Center Heroku Blog Heroku Blog Find out what's new with Heroku on our blog. Visit Blog Heroku Postgres is a managed SQL database service provided directly by Heroku. You can access a Heroku Postgres database from any language with a PostgreSQL driver, including all languages Heroku officially support
Rails applications running on Heroku can have the asset pipeline compiled locally, at deploy-time, or at run time. For new users, we recommend reading Getting Started with Ruby on Heroku before proceeding further. The Rails 4 Asset Pipeline If you are using Rails 4 and the asset pipeline it is recommended to familiarize yourself with the document below. Much of the behavior between Rails 3 and Rai
Web applications that process concurrent requests make more efficient use of dyno resources than those that only process one request at a time. Puma is a webserver that competes with Unicorn and allows you to handle concurrent requests. Puma uses threads, in addition to worker processes, to make more use of available CPU. You can only utilize threads in Puma if your entire code-base is thread safe
This article describes how to upgrade the major Postgres version of a Heroku Postgres database. The most recent major Postgres version supported by Heroku is 17. Users can’t update a database’s minor version themselves. If a new minor version is available and the database is on an older minor version, Heroku automatically updates the minor version after each database maintenance on Standard-tier a
This article is a work in progress, or documents a feature that is not yet released to all users. This article is unlisted. Only those with the link can access it. The SSL Endpoint add-on is deprecated and can no longer be provisioned by customers. Existing SSL Endpoints will continue to work. SSL Endpoints will be migrated starting July 31, 2021 to Heroku SSL. The ultimate shutdown date and end o
Amazon Simple Storage Service (S3) is a durable and available store, ideal for storing application content like media files, static assets, and user uploads. Storing static files elsewhere is crucial for Heroku apps since dynos have an ephemeral filesystem. Whenever you replace a dyno or when it restarts, which happens daily, all files that aren’t part of your application’s slug are lost. Use a st
This article was contributed by Tute CostaTute is a developer at thoughtbot NYC. You can find him on twitter @tutec . Many web apps require the user to upload images and other files for storage and processing. Paperclip is a cleanly abstracted Ruby library that reduces the complexity of file uploading and processing. Using Paperclip with an external storage service such as Amazon S3 or Rackspace C
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く