LoginSignup
4
5

More than 5 years have passed since last update.

Herokuで、Gititを起動する

Posted at

Gititは、Gitで管理できるHaskell製のwikiです。

HerokuGititを起動する際にハマったポイントのメモです。

基本的なやり方はこちらを参考にしました。

ハマりポイント1

wikidataのレポジトリにREAMDEが必要です。

wikidataのレポジトリにREADMEがないと、以下の様なエラーでデプロイに失敗します。

Configure environment
   There was an issue setting up your app environment.
   could not find the source blob

ハマりポイント2

https://github.com/mietek/gititのデプロイに失敗する

https://github.com/mietek/gititのレポジトリがこの記事を書いている時点で、gititの起動に失敗する状態です。

pull requestに出ている通り、configファイルのパスを修正する必要があります。

私の場合は、↑のレポジトリをフォークして、修正しました。

その場合のデプロイは、

  1. forkしたレポジトリで、このとおり修正&コミット。
  2. heroku create -b https://github.com/mietek/haskell-on-heroku
  3. アプリの名称変更 heroku apps:rename hogehoge
  4. こちらに出てくる環境変数をすべて設定。 heroku config:set BUILDPACK_URL='https://github.com/mietek/haskell-on-heroku のような感じで。
  5. デプロイ! git push -q heroku master

ハマりポイント3

static templates ディレクトリは wikidata配下へ移動する

wikidataを作成するために、gititコマンドを実行すると、wikidatastatic,temaplatesディレクトリが横並びで作成されますが、static,templatesディレクトリもgitレポジトリに入れて、Herokuで読み込んでもらうために移動します。

ハマりポイント4

独自ドメインの使用はクレジットカードの登録が必要です

無料でできることはできますが、カードの登録は必要とのことです。

参考

フォークしたレポジトリ

wikidataを格納するレポジトリ

Herokuで起動したwikiページ

4
5
0

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
  3. You can use dark theme
What you can do with signing up
4
5