Closed microstudi closed 7 months ago
@microstudi I added some small comments 🙏🏼 and I see there is also 1 failing test: https://github.com/coopdevs/timeoverflow/actions/runs/7800180296/job/21272472836?pr=730#step:5:25. The rest seems good to me 👌🏼.
@markets the failing test is due the update of the imagemagik library. I've fixed it but something happened with the upload coverage. The rest is applied!
This PR optimizes the application for its use in Docker images:
Testing
Run
Visit http:/localhost:3000/
Env vars summary:
RAILS_ENV
production
SECRET_KEY_BASE
rails secret
DATABASE_URL
postgresql://user:password@host:port/database
RAILS_SERVE_STATIC_FILES
public
folder)true
RAILS_LOG_TO_STDOUT
true
RAILS_LOG_LEVEL
debug
for maximum information)info
RAILS_MAX_THREADS
1
if multithreading is not desired)5
RAILS_MIN_THREADS
RAILS_MAX_THREADS
valueWEB_CONCURRENCY
2
RUN_SIDEKIQ
true
RUN_RAILS
true
QUEUE_ADAPTER
sidekiq
SIDEKIQ_CONCURRENCY
5
STORAGE_PROVIDER
local
andamazon
)local
FORCE_SSL
false
MAIL_LINK_HOST
mydomain.tld
)MAIL_LINK_PROTOCOL
https
SMTP_ADDRESS
smtp.mailgun.org
)SMTP_PORT
587
)SMTP_DOMAIN
SMTP_USER_NAME
SMTP_PASSWORD
SMTP_AUTHENTICATION
plain
SMTP_ENABLE_STARTTLS_AUTO
true
SMTP_OPENSSL_VERIFY_MODE
none
AWS_ACCESS_KEY_ID
STORAGE_PROVIDER
isamazon
)AWS_SECRET_ACCESS_KEY
STORAGE_PROVIDER
isamazon
)AWS_BUCKET
STORAGE_PROVIDER
isamazon
)AWS_REGION
STORAGE_PROVIDER
isamazon
)ADMINS
admin@timeoverflow.org