[Ruby] Publish apps made with ruby on rails

less than 1 minute read

Basically follow the article below

https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39

Genfile is not set because I used PostgreSQL from the development environment.

Settings in config/environments/production.rb changed config.assets.compile = false to true

I set it to start production in the local environment, so work to return it

//export RAILS_SERVE_STATIC_FILES=1
//export TASKLEAF_DATABASE_PASSWORD=password

Comment out the above two

config/environments/production.rb


config.public_file_server.enabled = true

To

config/environments/production.rb


config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

Return to

Published application

https://tasknotice.herokuapp.com/