LoginSignup
3

More than 5 years have passed since last update.

posted at

updated at

Organization

HerokuでDockerでTrusterdを動かすまで 最終回

前回

TL;DR

Trusterdを動かしたらエラー

2015-05-10T12:26:42.057210+00:00 app[web.1]: /app/src/trusterd.conf.rb:157: getpwnam failed (RuntimeError)

解決方法

trusterdの実行ユーザーの指定?をコメントアウトしたら、よきに計らってもらえた。

HerokuのDockerだと、rootで動かせない事からくる制約と思われる。

# runngin user, start server with root and change to run_user
#:run_user => "app",

出来ました!

何ができる

動的コンテンツにRubyスクリプトを使える。

htdocs配下に.rbで終わるrubyスクリプトを置き、デプロイすると

とアクセスする事が可能。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
3