From 0b17dce9aa15a56d65ba53f57f9de2464de44342 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 27 Jan 2026 16:49:15 +0100 Subject: [PATCH 1/3] Update scalingo.json with env variables and scripts Added environment variables and scripts to scalingo.json. --- scalingo.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/scalingo.json b/scalingo.json index 1cad1a1..ecd7f05 100644 --- a/scalingo.json +++ b/scalingo.json @@ -3,5 +3,29 @@ "description": "Sample Ruby web application using the Rails framework", "logo": "https://scalingo.com/logo.svg", "repository": "https://github.com/Scalingo/sample-ruby-rails", - "website": "https://ruby-rails.is-easy-on-scalingo.com/" + "website": "https://ruby-rails.is-easy-on-scalingo.com/", + "env": { + "VAR_TEST_1": { + "description": "test variable number 1", + "value": "1" + }, + "VAR_SECRET_1": { + "description": "generated variable 1", + "generator": "secret" + }, + "PUBLIC_URL": { + "description": "URL of the application", + "generator": "url" + }, + "ADMIN_URL": { + "description": "Admin URL of the application", + "generator": "url", + "template": "%URL%/admin" + } + }, + "addons": "", + "scripts": { + "first-deploy": "echo 'first deployment'", + "postdeploy": "echo hello" + } } From 23dd68e93bb29419c4a960659d422e0164a33c34 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 27 Jan 2026 16:50:33 +0100 Subject: [PATCH 2/3] Add MongoDB addon configuration to scalingo.json --- scalingo.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scalingo.json b/scalingo.json index ecd7f05..89ee809 100644 --- a/scalingo.json +++ b/scalingo.json @@ -23,7 +23,14 @@ "template": "%URL%/admin" } }, - "addons": "", +"addons": [ + { + "plan": "mongodb:mongo-starter-256", + "options": { + "version": "4.0.16-1" + } + } + ], "scripts": { "first-deploy": "echo 'first deployment'", "postdeploy": "echo hello" From 3fb9832d269fe9e89680a4155aef6aa9d2bb9732 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 27 Jan 2026 16:52:57 +0100 Subject: [PATCH 3/3] Enable copy of parent database URLs --- scalingo.json | 1 + 1 file changed, 1 insertion(+) diff --git a/scalingo.json b/scalingo.json index 89ee809..37c7a1b 100644 --- a/scalingo.json +++ b/scalingo.json @@ -4,6 +4,7 @@ "logo": "https://scalingo.com/logo.svg", "repository": "https://github.com/Scalingo/sample-ruby-rails", "website": "https://ruby-rails.is-easy-on-scalingo.com/", + "copy_parent_database_urls": true, "env": { "VAR_TEST_1": { "description": "test variable number 1",