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..d4504c1b --- /dev/null +++ b/render.yaml @@ -0,0 +1,16 @@ +databases: + - name: simple-form-bootstrap + databaseName: sfbootstrapdb + user: sfbootstrap + +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: sfbootstrapdb + property: connectionString