7
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HerokuAdvent Calendar 2019

Day 21

herokuでビンゴ作ってherokuボタン付けた話

Posted at

Heroku Advent Calendar 2019 の21日目の記事です

ビンゴ作ったよ

12月13日にあったheroku meetup で使ったビンゴアプリを作りました

アプリはこちら https://heroku-binbinbingo.herokuapp.com/

リポジトリはこちら https://github.com/sizukutamago/heroku-bingo

ぜひイベントとかで使ってみてください!

herokuボタンも付けたよ

herokuボタンを付けて誰でもデプロイできるようにしました
とういうことで作り方紹介

rootディレクトリに app.json を作るだけで設定は終わりです
githubのリポジトリはOPENである必要があります

{
"name": "binbinbingo!",
"description": "bingoです",
"repository": "https://github.com/sizukutamago/heroku-bingo", // githubのrepository
"keywords": [
  "php",
  "laravel",
  "vue",
  "bingo"
],
"scripts": {
  "postdeploy": ""  // deploy後に実行するコマンド
},
"env": {                                              // 環境変数
  "DB_CONNECTION": {
    "value": "pgsql"
  },
  "APP_ENV": {
    "value": "production"
  }
},
"addons": [
  "heroku-postgresql"    // 必要なアドオン
],
"buildpacks": [
  {
    "url": "heroku/nodejs"
  },
  {
    "url": "heroku/php"
  }
]
}

あとは https://heroku.com/deploy?template=[githubリポジトリのURL] にアクセスするとherokuデプロイできます!

7
0
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
7
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?