From e04133c9564e299ba41732320b0c79743b5a6912 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 12 Oct 2023 16:25:45 -0300 Subject: [PATCH] Test render --- bin/render-build.sh | 6 ++++++ render.yaml | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 bin/render-build.sh create mode 100644 render.yaml diff --git a/bin/render-build.sh b/bin/render-build.sh new file mode 100755 index 00000000..827e54de --- /dev/null +++ b/bin/render-build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# exit on error +set -o errexit + +bundle install +bundle exec rake assets:precompile assets:clean db:migrate diff --git a/render.yaml b/render.yaml new file mode 100644 index 00000000..6f462304 --- /dev/null +++ b/render.yaml @@ -0,0 +1,16 @@ +databases: + - name: simple-form-bootstrap + databaseName: simple-form-bootstrap-db + user: simple-form-bootstrap + +services: + - type: web + name: simple-form-boostrap + runtime: ruby + buildCommand: "./bin/render-build.sh" + startCommand: "bundle exec puma -C config/puma.rb" + envVars: + - key: DATABASE_URL + fromDatabase: + name: simple-form-boostrap-db + property: connectionString