LoginSignup
4
3

More than 5 years have passed since last update.

Heroku Buttonをつけてみた。

Posted at

Githubに置いてあるソースにHerokuボタンをつけてみた。

押したら自分のHerokuアカウントにお手軽コピーできるやつです。

↓GithubのREADME.mdで良く見かけるやつです。

Deploy on Heroku

Heroku Deploy

template=githubのURL

README.md
# Deploy on Heroku

[![Heroku Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/niiyz/KojoMapTool)

/直下にapp.jsonを設置します。

app.json
{
  "name": "kojo-map-tool",
  "description": "Map making tool for GoogleMapAPIv3",
  "website": "https://github.com/niiyz/KojoMapTool",
  "repository": "https://github.com/niiyz/KojoMapTool",
  "logo": "https://github.com/niiyz/KojoMapTool/blob/master/public/images/logo.png",
  "success_url": "/",
  "keywords": [
    "googlemapapiv3",
    "map",
    "tool",
    "toyama",
    "takaoka"
  ],
  "addons": [
    "heroku-postgresql"
  ]
}

logoを指定しなかったらエラーになりました。
アイコンみたいなの設置しないといけないみたいです。

4
3
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
3