Skip to content

Commit

Permalink
render
Browse files Browse the repository at this point in the history
  • Loading branch information
crmne committed Aug 13, 2024
1 parent 49dcb1a commit 99cf1c7
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec puma -C config/puma.rb
9 changes: 9 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/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 tailwindcss:build
bundle exec rake db:migrate
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# config.public_file_server.enabled = false

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
config.assets.css_compressor = nil

# Do not fall back to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
Expand Down
24 changes: 24 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
databases:
- name: cluster_headache_tracker
databaseName: cluster_headache_tracker_production
user: cluster_headache_tracker
plan: free

services:
- type: web
name: cluster_headache_tracker
runtime: ruby
plan: free
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec puma -C config/puma.rb"
envVars:
- key: DATABASE_URL
fromDatabase:
name: cluster_headache_tracker
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
- key: WEB_CONCURRENCY
value: 2
- key: RAILS_ENV
value: production

0 comments on commit 99cf1c7

Please sign in to comment.