Skip to content

Commit

Permalink
add render config files
Browse files Browse the repository at this point in the history
  • Loading branch information
hetrox8 committed Nov 24, 2023
1 parent 32fc2fc commit 1c787ff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# exit on error
set -o errexit

bundle install
bundle exec rake assets:precompile
bundle exec rake assets:clean
bundle exec rake db:migrate
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ test:

production:
<<: *default
database: db/Budget_app_production
url: <%= ENV['DATABASE_URL'] %>
19 changes: 19 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
databases:
- name: mysite
databaseName: mysite
user: mysite

services:
- type: web
name: mysite
runtime: ruby
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec puma -C config/puma.rb"
envVars:
- key: DATABASE_URL
fromDatabase:
name: mysite
property: connectionString
- key: RAILS_MASTER_KEY
sync: false

0 comments on commit 1c787ff

Please sign in to comment.