Render build

This commit is contained in:
Ryan W
2022-09-10 15:55:16 -07:00
parent a8a27e5f01
commit d29cf694a1
3 changed files with 10 additions and 3 deletions
+8
View File
@@ -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
+1 -2
View File
@@ -82,5 +82,4 @@ test:
production: production:
<<: *default <<: *default
database: railsondocker_production database: railsondocker_production
username: railsondocker url: <%= ENV['DATABASE_URL'] %>
password: <%= ENV["RAILSONDOCKER_DATABASE_PASSWORD"] %>
+1 -1
View File
@@ -24,7 +24,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? || ENV['RENDER'].present?
# Compress CSS using a preprocessor. # Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass