Commit 4213fd357d5527e58cd1cc180596ca04093f50d4

Authored by George Vlahavas
1 parent 8a102a61b0

Create .env file on api startup

Showing 2 changed files with 2 additions and 1 deletions

api/start.sh View file @ 4213fd3
1 1 #!/bin/sh
2 2  
3 3 sed -i "s|localhost:5611|${APP_URL}:5611|g" ./api/public/js/*
  4 +sed "s|^APP_URL=.*|APP_URL=${APP_URL}|" ./api/.env.example > ./api/.env
  5 +
4 6 php-fpm
docker-compose-jfrog.yml View file @ 4213fd3
... ... @@ -79,7 +79,6 @@
79 79 working_dir: /var/www
80 80 volumes:
81 81 - api_volume:/var/www
82   - - .env:/var/www/.env
83 82 environment:
84 83 - "APP_NAME=${APP_NAME}"
85 84 - "APP_ENV=${APP_ENV}"