kosmas58 / pia-docker

Killian Kemps (https://github.com/KillianKemps) has created an awesome Docker configuration to setup a Docker environment for production purpose. Thanks to Killian it is much easier now to run PIA. A simple docker-compose up does everything and gives a running website : front-end, back-end and database.
GNU General Public License v3.0
37 stars 34 forks source link

Issue "Production" mode #8

Open DenisDupont opened 5 years ago

DenisDupont commented 5 years ago

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

Zwordi commented 5 years ago

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 :)

DenisDupont commented 5 years ago

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.