pia-docker icon indicating copy to clipboard operation
pia-docker copied to clipboard

Issue "Production" mode

Open DenisDupont opened this issue 6 years ago • 2 comments

Hello, We have installed PIA-Docker and we have a problem with the installation. If we use "RAILS_ENV test", everything works but with "RAILS_ENV production" we can't connect the Frontend and the Backend. The database seems unavailable. Do you know if another configuration is required to work in "Production" mode

Best regards

DenisDupont avatar Feb 01 '19 09:02 DenisDupont

Hello Denis, I'm also playing with pia this week. I had no issue with the production settings using also ENV RAILS_SERVE_STATIC_FILES=true for the pia-back. Did you set your ENV PIA_VERSION 2.0.0 because i had also issue with the 1.6.4. Enjoy :)

Zwordi avatar Feb 01 '19 09:02 Zwordi

Hello, Thank you for your reply. The problem seems to be solved when we use the variable RAILS_SERVE_STATIC_FILES = true. Then 3 steps: docker-compose down docker system plum -a docker-compose up -d

Thank you again for your help. Best regards.

DenisDupont avatar Feb 04 '19 15:02 DenisDupont