読者です 読者をやめる 読者になる 読者になる

ghost on the heroku

イシュー

  • ghostをherokuで動かす
  • 先人がいて、いやはや助かる(動くかわからんけど、、)

参考

今年初heroku(だっけか?)

  • git に深刻なセキュリティ脆弱性とか
$ heroku config
Your version of git is 1.9.3. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
ghost-sandbox1 has no config vars.
$

参考

動いた

とおもったら、dbつながってない

$ heroku pg:psql DATABASE_URL
---> Connecting to HEROKU_POSTGRESQL_JADE_URL (DATABASE_URL)
psql (9.3.4, server 9.3.6)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.

ghost-sandbox1::JADE=> \d
                       List of relations
 Schema |           Name           |   Type   |     Owner      
--------+--------------------------+----------+----------------
 public | accesstokens             | table    | oogvoibslkuxte
 public | accesstokens_id_seq      | sequence | oogvoibslkuxte
 public | app_fields               | table    | oogvoibslkuxte
 public | app_fields_id_seq        | sequence | oogvoibslkuxte
 public | app_settings             | table    | oogvoibslkuxte
 public | app_settings_id_seq      | sequence | oogvoibslkuxte
 public | apps                     | table    | oogvoibslkuxte
 public | apps_id_seq              | sequence | oogvoibslkuxte
 public | clients                  | table    | oogvoibslkuxte
 public | clients_id_seq           | sequence | oogvoibslkuxte
 public | permissions              | table    | oogvoibslkuxte
 public | permissions_apps         | table    | oogvoibslkuxte
 public | permissions_apps_id_seq  | sequence | oogvoibslkuxte
 public | permissions_id_seq       | sequence | oogvoibslkuxte
 public | permissions_roles        | table    | oogvoibslkuxte
 public | permissions_roles_id_seq | sequence | oogvoibslkuxte
 public | permissions_users        | table    | oogvoibslkuxte
 public | permissions_users_id_seq | sequence | oogvoibslkuxte
 public | posts                    | table    | oogvoibslkuxte
 public | posts_id_seq             | sequence | oogvoibslkuxte
 public | posts_tags               | table    | oogvoibslkuxte
 public | posts_tags_id_seq        | sequence | oogvoibslkuxte
 public | refreshtokens            | table    | oogvoibslkuxte
 public | refreshtokens_id_seq     | sequence | oogvoibslkuxte
 public | roles                    | table    | oogvoibslkuxte
 public | roles_id_seq             | sequence | oogvoibslkuxte
 public | roles_users              | table    | oogvoibslkuxte
 public | roles_users_id_seq       | sequence | oogvoibslkuxte
 public | settings                 | table    | oogvoibslkuxte
 public | settings_id_seq          | sequence | oogvoibslkuxte
 public | tags                     | table    | oogvoibslkuxte
 public | tags_id_seq              | sequence | oogvoibslkuxte
 public | users                    | table    | oogvoibslkuxte
 public | users_id_seq             | sequence | oogvoibslkuxte
(34 rows)

ghost-sandbox1::JADE=> 

とりあえず、DBはある

heroku restart したら動いた

  • そしてブログも作れた(あのアプリエラーは何だった?)

heroku ボタン、、