Skip to content

Commit

Permalink
build: prepare for render
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiosantana committed Jul 14, 2024
1 parent 579c832 commit 061d1fb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# exit on error
set -o errexit

bundle install
bundle exec rails assets:precompile
bundle exec rails assets:clean
22 changes: 22 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
databases:
- name: Pages Ahead
databaseName: pages_ahead
user: pages_ahead
plan: free

services:
- type: web
name: pages-ahead
runtime: ruby
plan: free
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec rails server"
envVars:
- key: DATABASE_URL
fromDatabase:
name: pages-ahead
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
- key: WEB_CONCURRENCY
value: 2

0 comments on commit 061d1fb

Please sign in to comment.