From d7e05b9b6ec1a4f8f283aea8bc73519ba96a0650 Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:57:01 -0500 Subject: [PATCH] Add Heroku config Why these changes are being introduced: We need a Procfile and app.json for our Heroku config. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/ENGX-239 How this addresses that need: This adds a Procfile and app.json with the initial settings we'll need. Side effects of this change: None. --- Procfile | 2 ++ app.json | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Procfile create mode 100644 app.json diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..1e91991 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +release: bundle exec rails db:migrate +web: bundle exec puma -C config/puma.rb \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 0000000..4e6b111 --- /dev/null +++ b/app.json @@ -0,0 +1,26 @@ +{ + "name": "timdex", + "stack": "heroku-22", + "scripts": {}, + "env": { + "LINKRESOLVER_BASEURL": { + "required": false + }, + "UNPAYWALL_EMAIL": { + "required": false + } + }, + "formation": { + "web": { + "quantity": 1 + } + }, + "addons": [ + "heroku-postgresql" + ], + "buildpacks": [ + { + "url": "heroku/ruby" + } + ] +}