Herokuが自ら実践しているAPIデザインガイドをGithubに公開した. “HTTP API Design Guide” このガイドは些細なデザイン上の議論を避けて,ビジネスロジックに集中すること目的としている.Heroku特有なものではなく,一般にも十分適用できる知見となっている. 最近は,モバイル向けにAPIをつくることも多いため,勉強もかねて抄訳した.なお内容は,HTTP+JSONのAPIについて基本的な知識があることが前提となっている. 適切なステータスコードを返す それぞれのレスポンスは適切なHTTPステータスコード返すこと.例えば,“成功"を示すステータスコードは以下に従う. 200: GETやDELETE,PATCHリクエストが成功し,同時に処理が完了した場合 201: POSTリクエストが成功し,同時に処理が完了した場合 202: POSTやDELETE,PATCHリク
plugin=menu_ctrl is not implemented.
Webアプリのリハビリ ということで、Official Blog: A second spring of cleaningで告知された、Google Reader閉鎖に備え、俺専用RSSリーダーをRuby on Railsで軽めに作ってみた。 read.aho.mu 目的としてはRuby + Railsの学習と、サーバーサイドのリハビリのつもりだったのだけど、簡単すぎて実作業1日分くらいで終わってしまった..(´・ω・`) 自分で登録したフィードを、自分でなんとなく流し読みして、良いと思った記事に♡を付けられるだけなのですが、それがついでにオープンになっているだけ。 色々もにょもにょ 触ってみた箇所について所感など。 前からScalaなりNodeなりでHello Worldまでは試してましたが、素直にRailsをデプロイして動くところまで手を入れたのは初。 無料で使えるアドオンを幾つか入れ
On the surface, PGBackups provides a way to capture regular backups of your Heroku Postgres database. However, because of its general-purpose architecture and use of standard PostgreSQL utilities, it’s also a useful tool capable of exporting to or importing from external PostgreSQL databases. Export PGBackups uses the native pg_dump PostgreSQL tool to create its backup files, making it trivial to
This tutorial gets you started with real-time Node.js applications on Heroku. We develop a simple application that shares the server’s current time with the client via a persistent socket connection. Each application is based on Node’s popular express web server. When developing real-time Node.js applications, you can use WebSockets directly. You can also use an abstraction library like Socket.io,
Heroku unloads a site from memory when it doesn’t get a hit for a while. This is all well and good for free users, but should they really be doing this to customers who are paying good money for their services? I recently launched Mycelial and traffic hasn’t been so great after the first couple of launch days. I’m paying decent money to Heroku because I’m employing things like resque, redis-to-go
Additional ResourcesHomeElementsProductsPricingCareersHelpStatusEventsPodcastsCompliance CenterHeroku BlogHeroku 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 officially supported by Heroku. In ad
Standalone Installation with a Tarball The standalone install is a simple tarball with a binary. It contains its own Node.js binary and autoupdates. To set up the CLI in /usr/local/lib/heroku and /usr/local/bin/heroku, run this script. The script requires sudo and isn’t Windows compatible. $ curl https://cli-assets.heroku.com/install.sh | sh You can also download one of these tarballs and extract
Ruby on Rails is becoming a respectable standard for building web applications, for all the good reasons: It is a powerful and fun language, it has a great community and it’s easy to deploy to Heroku. While I was taking SaaS-class, I missed the parentheses and as always, I got curious: how would Common Lisp compare? A whirlwind course of Ruby on Rails and best-practises of Engineering Long-Lasting
I decided to investigate Heroku’s early years. You can learn a lot from even quite recent tech history (see my previous article on version control). My tool? The Internet Archive. It’s an elephant that never forgets your pivots. 1. November 2007 – code in the cloud Ruby on Rails is riding high. But impossibly hard to deploy. Y Combinator startup Heroku’s first home page (see right – apologies for
Clojure developers are used to a very interactive development environment in which the editor is closely integrated with the running process via a read/eval/print loop (REPL). It’s possible to reproduce this to a degree with actual Heroku dynos using heroku run lein repl, but this creates a new process rather than connecting to existing processes which are serving web requests. This makes it unsui
Building an iOS Photo-sharing and Geolocation Mobile Client and API Last Updated: 20 April 2012 Table of Contents Prerequisites Deploy API to Heroku Write Your Rails Application Declare Process Types With Foreman/Procfile Store Your Rails Application in Git Deploy to Heroku/Cedar Generate a Photo Resource Add Image Upload Columns Add Controller Actions Create Your iOS Client App Declare iOS Depend
This quickstart will have you up and running with a native iOS application that consumes a web API with Sinatra. For additional resources about Sinatra, please see the Ruby quickstart. Prerequisites Basic Objective-C knowledge, including a development environment running Mac OS X with Xcode 4.2 installed. Basic Ruby knowledge, including an installed version of Ruby 1.9.2, Rubygems, Bundler, and Si
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く